Skip to content

Commit

Permalink
Merge pull request #50 from apache/add-qemu
Browse files Browse the repository at this point in the history
Add qemu installation
  • Loading branch information
potiuk committed Mar 9, 2022
2 parents 5605f72 + 7d5f7c4 commit c2ad79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions github-runner-ami/packer/files/docker-buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ sudo -u runner mkdir -pv "${plugins_dir}"
sudo -u runner curl -L "https://github.com/docker/buildx/releases/download/${buildx_version}/${buildx_binary}" -o "${plugins_dir}/docker-buildx"
sudo -u runner chmod a+x "${plugins_dir}/docker-buildx"

apt install -y qemu qemu-user-static

# make sure multi-platform support is added for self-hosted runners
# See; https://docs.docker.com/buildx/working-with-buildx/#build-multi-platform-images
sudo docker run --privileged --rm tonistiigi/binfmt --install all
2 changes: 1 addition & 1 deletion github-runner-ami/packer/vars/variables.pkrvars.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

vpc_id = "vpc-d73487bd"
ami_name = "airflow-runner-ami-m"
ami_name = "airflow-runner-ami-m2"
aws_regions = ["eu-central-1", "us-east-2"]
packer_role_arn = "arn:aws:iam::827901512104:role/packer-role"
runner_version = "2.288.1-airflow1"
Expand Down

0 comments on commit c2ad79d

Please sign in to comment.