-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Test higher bandwidth machines
Signed-off-by: Ryan Northey <[email protected]>
- Loading branch information
Showing
4 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash -eu | ||
|
||
set -o pipefail | ||
|
||
|
||
AGENT_VERSION=3.218.0 | ||
|
||
# shellcheck source=ami-build/scripts/install-fun.sh | ||
. /home/ubuntu/scripts/install-fun.sh | ||
|
||
|
||
agent_setup_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Defines a Packer template that builds an AMI image of a large arm64 VM that runs | ||
# the AZP Agent. | ||
|
||
source "amazon-ebs" "envoy-azp-build-arm64" { | ||
ami_name = "envoy-azp-build-arm64-{{timestamp}}" | ||
instance_type = "r6g.large" | ||
region = "us-east-2" | ||
security_group_ids = ["sg-030a7a75a086f208c"] | ||
source_ami_filter { | ||
filters = { | ||
# Found with: | ||
# aws ec2 describe-images --owners 'aws-marketplace' --output json --region us-east-2 --filters "Name=product-code,Values=4s6b2r2vfe46kyul508kf459f" | ||
name = "ubuntu-minimal/images/hvm-ssd/ubuntu-jammy-22.04-arm64-minimal-*" | ||
root-device-type = "ebs" | ||
virtualization-type = "hvm" | ||
} | ||
most_recent = true | ||
owners = ["099720109477"] | ||
} | ||
encrypt_boot = true | ||
ssh_username = "ubuntu" | ||
|
||
run_tags = { | ||
"Project" : "Packer" | ||
} | ||
run_volume_tags = { | ||
"Project" : "Packer" | ||
} | ||
tags = { | ||
"Project" : "Envoy", | ||
"AmiType" : "envoy-azp-build-arm64" | ||
} | ||
} | ||
|
||
build { | ||
name = "envoy-azp-build-arm64" | ||
sources = [ | ||
"source.amazon-ebs.envoy-azp-build-arm64" | ||
] | ||
|
||
provisioner "file" { | ||
source = "scripts" | ||
destination = "/home/ubuntu/scripts" | ||
} | ||
|
||
provisioner "shell" { | ||
script = "agent-setup-build.sh" | ||
execute_command = "{{.Vars}} sudo -S -E bash -eu '{{.Path}}'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Defines a Packer template that builds an AMI image of a large x64 VM that runs | ||
# the AZP Agent. | ||
|
||
source "amazon-ebs" "envoy-azp-build-x64" { | ||
ami_name = "envoy-azp-build-x64-{{timestamp}}" | ||
instance_type = "r5.large" | ||
region = "us-east-2" | ||
security_group_ids = ["sg-030a7a75a086f208c"] | ||
source_ami_filter { | ||
filters = { | ||
# Found with: | ||
# aws ec2 describe-images --owners 'aws-marketplace' --output json --region us-east-2 --filters "Name=product-code,Values=4s6b2r2vfe46kyul508kf459f" | ||
name = "ubuntu-minimal/images/hvm-ssd/ubuntu-jammy-22.04-amd64-minimal-*" | ||
root-device-type = "ebs" | ||
virtualization-type = "hvm" | ||
} | ||
most_recent = true | ||
owners = ["099720109477"] | ||
} | ||
encrypt_boot = true | ||
ssh_username = "ubuntu" | ||
|
||
run_tags = { | ||
"Project" : "Packer" | ||
} | ||
run_volume_tags = { | ||
"Project" : "Packer" | ||
} | ||
tags = { | ||
"Project" : "Envoy", | ||
"AmiType" : "envoy-azp-build-x64" | ||
} | ||
} | ||
|
||
build { | ||
name = "envoy-azp-build-x64" | ||
sources = [ | ||
"source.amazon-ebs.envoy-azp-build-x64" | ||
] | ||
|
||
provisioner "file" { | ||
source = "scripts" | ||
destination = "/home/ubuntu/scripts" | ||
} | ||
|
||
provisioner "shell" { | ||
script = "agent-setup-build.sh" | ||
execute_command = "{{.Vars}} sudo -S -E bash -eu '{{.Path}}'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters