Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-architecture image build using buildx on GitHub Actions #21

Merged
merged 6 commits into from
Dec 23, 2020

Conversation

rnorth
Copy link
Member

@rnorth rnorth commented Dec 17, 2020

Multi-architecture image build using buildx on GitHub Actions.

Publishing an image for:

  • AMD64 (to match status quo)
  • ARM64 (for modern ARM servers/Apple M1)
  • S390X (for IBM Z Series)
  • PPC64LE (for IBM P Series)
  • ARMv7 (for Raspberry Pi)

Because the current GitHub-Docker Hub integration does not support multi-arch builds, it is necessary to use GitHub Actions to build the images with Docker buildx (leveraging QEMU emulation).

@rnorth rnorth mentioned this pull request Dec 17, 2020
@rnorth
Copy link
Member Author

rnorth commented Dec 17, 2020

I've set up a new account on Docker Hub dedicated to builds, testcontainersbuild.

Using a private repo on Hub, testcontainersbuild/temp-test, I've done a trial run publication in this job which results in the following test image being published:

image

Next steps:

  • reconfigure the workflow to push to testcontainers/ryuk, on release events only
  • disable the current GitHub-Docker integration
  • review, merge, and do a final test by cutting a new release

Publishing an image for:

    AMD64 (to match status quo)
    ARM64 (for modern ARM servers/Apple M1)
    S390X (for IBM Z Series)
    PPC64LE (for IBM P Series)
    ARMv7 (for Raspberry Pi)

Because the current GitHub-Docker Hub integration does not support multi-arch builds, it is necessary to use GitHub Actions to build the images with Docker buildx (leveraging QEMU emulation).
@rnorth rnorth changed the title Set up multi-arch image creation Multi-architecture image build using buildx on GitHub Actions Dec 18, 2020
@rnorth rnorth marked this pull request as ready for review December 18, 2020 18:48
@rnorth rnorth requested review from bsideup and kiview December 18, 2020 18:48
Copy link
Member

@bsideup bsideup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@rnorth rnorth merged commit 1e1e37a into master Dec 23, 2020
@rnorth rnorth deleted the multi-arch-image branch December 23, 2020 11:58
@codefromthecrypt
Copy link

Thanks so much!

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

Successfully merging this pull request may close these issues.

3 participants