You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2022/11/03 15:37:22 UTC

[trafficcontrol] branch master updated: Use tonistiigi/binfmt to emulate arm64 (#7170)

This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 635e2e6e06 Use tonistiigi/binfmt to emulate arm64 (#7170)
635e2e6e06 is described below

commit 635e2e6e0605ceeb2cdbb0bb49aafbd738f5cbf5
Author: Zach Hoffman <zr...@apache.org>
AuthorDate: Thu Nov 3 15:37:16 2022 +0000

    Use tonistiigi/binfmt to emulate arm64 (#7170)
    
    * Use tonistiigi/binfmt to emulate arm64
    
    * Fix workflow-triggering path
---
 .github/workflows/container-trafficserver-alpine.yml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/container-trafficserver-alpine.yml b/.github/workflows/container-trafficserver-alpine.yml
index 65ebe20381..7a1da09030 100644
--- a/.github/workflows/container-trafficserver-alpine.yml
+++ b/.github/workflows/container-trafficserver-alpine.yml
@@ -26,12 +26,12 @@ on:
     paths:
       - .env
       - .github/containers/trafficserver-alpine/**
-      - .github/workflows/containers/trafficserver-alpine.yml
+      - .github/workflows/container-trafficserver-alpine.yml
   pull_request:
     paths:
       - .env
       - .github/containers/trafficserver-alpine/**
-      - .github/workflows/containers/trafficserver-alpine.yml
+      - .github/workflows/container-trafficserver-alpine.yml
     types: [ opened, reopened, ready_for_review, synchronize ]
 
 jobs:
@@ -66,9 +66,7 @@ jobs:
         run: echo 'IMAGE_NAME=${{ env.CONTAINER }}:${{ env.ATS_VERSION }}-${{ matrix.platform }}' >> '${{ github.env }}'
       - name: Install aarch64 emulator
         if: ${{ env.SHOULD_RUN == '1' && matrix.platform == 'arm64' }}
-        # Updated 2020-02-07 but we're still using docker/binfmt instead of tonistiigi/binfmt@qemu-v6.2.0
-        # because tonistiigi/binfmt@qemu-v6.2.0 fails on building trafficserver after about an hour
-        run: docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
+        run: docker run --rm --privileged tonistiigi/binfmt:qemu-v6.2.0 --install arm64
       - name: Make a Docker Buildx builder
         if: ${{ env.SHOULD_RUN == '1' && matrix.platform == 'arm64' }}
         run: docker buildx create --name arm64-builder --use