mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[Feature] Multi Platform Images #34
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mbecker20 on GitHub (Aug 30, 2024).
Why make users have to specify their architecture with a different image tag? Multi platform images can solve this issue.
https://docs.docker.com/build/building/multi-platform/
@tagpro commented on GitHub (Sep 8, 2024):
Facing this issue:
arm tagged images are actually amd images
@mbecker20 commented on GitHub (Sep 9, 2024):
Hey, this is fixed, i've saved the Build to use the correct arm based instance type now. Thanks for letting me know, apologies!
@loan-mgt commented on GitHub (Sep 19, 2024):
@arevindh commented on GitHub (Nov 3, 2024):
Hello, I'm working on making my Node application compatible with both
aarch64andamd64architectures.Here’s the usual process I follow:
Step 1: Set up Docker Buildx
Ensure that buildx is available and initialized. If buildx isn’t already enabled in Docker, you can enable it by running:
Step 2: Build Multi-Platform Image
Use the following command to build and push a multi-platform image
Explanation of Flags
--platform linux/amd64,linux/arm64: Specifies the platforms to build for.yourusername/yourimagename:tag: Tags the image.--push: Pushes the built images directly to a Docker registry. This is necessary for multi-platform images as they must reside in a registry to be used effectively.I managed to accomplish everything (100%) with Komodo, except for the creation of the builder, using
Extra Args.Issue
The build status fails during the final push step on the builder.
You can also remove push --all-tags; with a normal build, it was also re-pushing all tags if a tag was deleted from the Docker registry.
@mbecker20 commented on GitHub (Nov 3, 2024):
Excellent write up @arevindh, thank you.
@mbecker20 commented on GitHub (Nov 15, 2024):
@arevindh Per your suggestion, it will just use
--pushflag withdocker buildstarting from v1.16.11, rather than another call todocker image push. It works in all situations :). Thanks for the feedback!