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

Add ARM64 support #942

Closed
wants to merge 1 commit into from
Closed

Add ARM64 support #942

wants to merge 1 commit into from

Conversation

odidev
Copy link

@odidev odidev commented Nov 12, 2021

What this does

This PR intends to add support for ARM64 in Dockerfile, config.yml and yaml deployment files to be able use and detect arm64 as well as amd64 nodes.

Relevant ticket: #928

Signed-off-by: odidev <odidev@puresoftware.com>
mkdir -vp ~/.docker/cli-plugins/
curl --silent -L --output ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.6.3/buildx-v0.6.3.linux-amd64
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker run -it --rm --privileged tonistiigi/binfmt --install all
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @odidev what does this line do?

Copy link
Author

Choose a reason for hiding this comment

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

Hi @ivanstanev,
Since Circle-CI runner supports only amd64 platform, these lines add docker buildx which is required to build and release docker images for multiple architectures.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see but what does tonistiigi/binfmt do and why does it need to run privileged?

Copy link
Author

Choose a reason for hiding this comment

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

Hi @ivanstanev,
The command enables docker buildx builder to support multiple architecture builds. You can refer official Circle-CI blog to build docker images for multiple architectures here. I have added same steps.

@ivanstanev
Copy link
Contributor

Hey @odidev we're not comfortable merging this, we prefer the multi-arch support to become native to the Docker toolkit rather than running external containers and emulators to get this working. Perhaps it's possible to achieve something similar by using ARM build machines in CircleCI. For now we're closing this until we have a more native solution!

@ivanstanev ivanstanev closed this Dec 9, 2021
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.

None yet

2 participants