agent icon indicating copy to clipboard operation
agent copied to clipboard

Use buildx to build multi arch images

Open keithduncan opened this issue 2 years ago • 5 comments

Depends on docker-compose v2 because they don’t build arm64 executables prior to that release. It’s in rc phase so hopefully releases soon.

TODO:

  • [x] Parallelise the multi-platform test_docker_image step, once these per-build images are --output="type=registry" we can run the per-architecture tests on separate machines and aggregate the results using Buildkite. This should be much faster than waiting for the serial results of each platform arch/variant to download and run through the tests.

keithduncan avatar Sep 03 '21 03:09 keithduncan

Depends on a stack with https://github.com/buildkite/elastic-ci-stack-for-aws/pull/903

keithduncan avatar Sep 03 '21 05:09 keithduncan

Depends on docker-compose v2 because they don’t build arm64 executables prior to that release

oh, this is good news!

We (mostly me) committed some horrible crimes to get a working docker compose in the elastic stack arm images:

https://github.com/buildkite/elastic-ci-stack-for-aws/blob/4c26d00a7347e84b6e26d9da1c48588835b5c571/packer/linux/scripts/install-docker.sh#L40-L53

yob avatar Sep 03 '21 10:09 yob

oh, this is good news!

We (mostly me) committed some horrible crimes to get a working docker compose in the elastic stack arm images:

🙈

I don’t know what the backwards compatibility story is like between docker-compose v1 and v2, we can review merging this and adopting it in these images once the RC goes final :smile:

keithduncan avatar Sep 06 '21 01:09 keithduncan

The test_docker_image passes on Alpine but fails on CentOS and Ubuntu {18.04,20.04}. I wonder if running an emulated architecture docker CLI in a container connecting out to the host Docker socket is a supported use case or not.

keithduncan avatar Sep 06 '21 03:09 keithduncan

Hey just wondering when this might get merged? Docker compose v2 has been GA for a couple months now 😁

Happy to help with any issues that might be blocking this :)

sophiabits avatar Aug 05 '22 07:08 sophiabits