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

fix: multiarch docker image #423

Merged
merged 20 commits into from
Jun 22, 2023
Merged

fix: multiarch docker image #423

merged 20 commits into from
Jun 22, 2023

Conversation

adamtagscherer
Copy link
Contributor

@adamtagscherer adamtagscherer commented Jun 19, 2023

Description

The multiarch Docker image doesn't work on crosscompiled platforms (arm64 in this case because we build on amd64).
With this PR merged in, it will work on amd64 and arm64 as well.

After a couple days of digging, I ended up using the following repository: https://github.com/tonistiigi/xx
This is an utility image that helps installing the proper cross compiling tools for the target platform.

Type of Change

[x] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@adamtagscherer adamtagscherer added bug Something isn't working docker Pull requests that update Docker code labels Jun 19, 2023
@adamtagscherer adamtagscherer requested a review from a team as a code owner June 19, 2023 10:34
@adamtagscherer adamtagscherer self-assigned this Jun 19, 2023
@adamtagscherer adamtagscherer linked an issue Jun 19, 2023 that may be closed by this pull request
@adamtagscherer adamtagscherer marked this pull request as draft June 19, 2023 13:00
@chrisgacsal chrisgacsal added this to the v0.5.0 milestone Jun 19, 2023
Dockerfile.backend Outdated Show resolved Hide resolved
Dockerfile.backend Outdated Show resolved Hide resolved
Dockerfile.backend Outdated Show resolved Hide resolved
@ramizpolic ramizpolic marked this pull request as ready for review June 21, 2023 11:47
ramizpolic
ramizpolic previously approved these changes Jun 21, 2023
Copy link
Member

@ramizpolic ramizpolic left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@chrisgacsal chrisgacsal left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@adamtagscherer adamtagscherer added this pull request to the merge queue Jun 22, 2023
Merged via the queue into main with commit b71ab70 Jun 22, 2023
5 checks passed
@adamtagscherer adamtagscherer deleted the fix-multiarch-dockerfile branch June 22, 2023 09:04
@adamtagscherer adamtagscherer modified the milestones: v0.5.0, v0.6.0 Jun 23, 2023
adamtagscherer added a commit that referenced this pull request Jun 29, 2023
* fix: multiarch docker image

* fix: remove binutils gold

* fix: add binutils gold to xx-apk

* fix: add binutils to xx-apk

* fix: remove binutils to xx-apk

* fix: try refactoring Dockerfile and see if CI runs successfully

* fix: add binutils-gold

* fix: add binutils-gold explicit version

* fix: add binutils-gold explicit version

* fix: add binutils-cross

* fix: add binutils with explicit version

* fix: bump build-push-action, remove cache

* fix: remove cache

* fix: add qemu to github actions

* fix: update github actions

* fix: switch to debian based builder platform

* fix: arrange Dockerfile.backend

* documentation: add comment

* refactor: move CGO to env, wrap go, remove mounts

* fix: pass static flag to external linker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docker Pull requests that update Docker code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support arm architecture with docker images
4 participants