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

Improve Docker Build and Deployment for Multi-Arch Support (arm64) #31

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

slikie
Copy link

@slikie slikie commented Jun 30, 2024

Add multi-arch support for Docker images: The previous implementation did not handle multi-arch correctly. This PR updates the Docker build process to support multiple architectures (linux/amd64 and linux/arm64) using the docker/metadata-action and docker/build-push-action.

Tested the changes on an arm machine and verified the build with the GitHub Container Registry.

Fixes: #25

Additional Note: The beeper/docker-retag-push-latest action does not seem to handle multi-arch correctly, which is a separate issue that needs to be addressed.

Verification: Please verify the changes by checking the Docker image on the GitHub Container Registry: https://github.com/slikie/bridge-manager/pkgs/container/bridge-manager

Copy link

@holysoles holysoles left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Testing evidence that this resolves the issue:

Screenshot 2024-09-17 at 10 30 08 PM

Current state does yield a benign, additional architecture on the packages page named "unknown/unknown", but that is a known behavior and can be removed (with a tradeoff) if the Beeper team cares

Screenshot 2024-09-17 at 10 29 32 PM

.github/workflows/go.yaml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ARM64 Docker support
2 participants