Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Please, add aarch64 host support (for self-hosted runners) #223

Closed
iav opened this issue Jul 14, 2020 · 11 comments
Closed

Please, add aarch64 host support (for self-hosted runners) #223

iav opened this issue Jul 14, 2020 · 11 comments

Comments

@iav
Copy link

iav commented Jul 14, 2020

Behaviour

On aarch64 self-hosted runner crazy-max/ghaction-docker-buildx@v3 tries to setupamd64 buildx version https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.linux-amd64

Steps to reproduce this issue

  1. set aarch64 self-hosted runner
  2. try to run crazy-max/ghaction-docker-buildx on it

Expected behaviour

It should run same as on x64 at least for linux/arm64, linux/arm/v7, linux/arm/v6 targets

Configuration

https://github.com/iav/test3/blob/master/.github/workflows/parallel.yml

Logs

https://github.com/iav/test5/runs/871253172?check_suite_focus=true#step:3:10

@iav
Copy link
Author

iav commented Jul 16, 2020

Job prepares buildx on my armbian aarch64 self-host worker:

      -
        name: Set up Docker Buildx
        env:
          BUILDX_URL: https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.linux-arm64
        run: |
          curl -fsSL https://get.docker.com -o get-docker.sh
          sudo sh get-docker.sh
          mkdir -p $HOME/.docker/cli-plugins/
          curl -sL $BUILDX_URL > $HOME/.docker/cli-plugins/docker-buildx
          chmod a+x $HOME/.docker/cli-plugins/docker-buildx
          echo -e "{\n  \"experimental\": \"enabled\"\n}" | tee $HOME/.docker/config.json
          docker info
          docker buildx create --use --driver docker-container
          docker buildx inspect --bootstrap

@morlay
Copy link

morlay commented Aug 27, 2020

could use tonistiigi/binfmt instead.

docker run --privileged --rm tonistiigi/binfmt --install all

@crazy-max
Copy link
Owner

crazy-max commented Aug 27, 2020

@morlay Don't think so. His runner is an aarch64 host.

@morlay
Copy link

morlay commented Aug 27, 2020

me too.

image

learn from docker/buildx#342 (comment)

@crazy-max
Copy link
Owner

crazy-max commented Aug 27, 2020

@morlay Yes but buildx is already available on your host, not for @iav.

@morlay @iav Btw, can you try #234 and let me know if you encounter any issue? Thanks.

@morlay
Copy link

morlay commented Aug 27, 2020

buildx provide arm64 version https://github.com/docker/buildx/releases
so it is easy to change for different arch.
https://github.com/crazy-max/ghaction-docker-buildx/blob/master/src/installer.ts#L51

but i try to run multiarch/qemu-user-static on arm host. it failed. tonistiigi/binfmt may fix this.

@morlay
Copy link

morlay commented Aug 27, 2020

@crazy-max

seems not released?

image

@crazy-max
Copy link
Owner

crazy-max commented Aug 27, 2020

@morlay

seems not released?

Yes see this workflow for now (uses: docker/setup-buildx-action@master).

@morlay
Copy link

morlay commented Aug 27, 2020

it works well on my arm64 self-host.

image
https://github.com/querycap/ci-infra/actions/runs/226439751

@crazy-max i couldn’t wait to change my github workflows. Thanks for your wonderful work.

when the v1 release?

@crazy-max
Copy link
Owner

@morlay

when the v1 release?

For setup-buildx and setup-qemu it will be available asap under v0.9.0 release. No official ETA for v1. See docker/setup-buildx-action#1 (comment)

i couldn’t wait to change my github workflows. Thanks for your wonderful work.

Thanks for your support!

crazy-max added a commit to crazy-max/docker-setup-buildx-action that referenced this issue Sep 5, 2020
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max
Copy link
Owner

@iav aarch64 support has been added to docker/setup-buildx-action

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants