Skip to content

Support Docker image for i386 and arm32v7 architectures#226

Closed
MPThLee wants to merge 1 commit intoLukeMathWalker:mainfrom
MPThLee:docker-build-other-arch
Closed

Support Docker image for i386 and arm32v7 architectures#226
MPThLee wants to merge 1 commit intoLukeMathWalker:mainfrom
MPThLee:docker-build-other-arch

Conversation

@MPThLee
Copy link
Copy Markdown

@MPThLee MPThLee commented Jul 10, 2023

Issue #, if available: Fixes #182

Description of changes: Add i386 and arm32v7 to Docker image build platform. (Following upstream image's architectures)

Official rust docker image is depends on rustup. And rustup doesn't support i386 and arm/v7 for musl(alpine) target.
This PR adds build target 'i386' and 'arm/v7' on non-alpine target. According to #182 (comment), this should be ok.
Note: latest is always Debian based.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

--build-arg=BASE_IMAGE=rust:$RUST_IMAGE_TAG \
--build-arg=CHEF_TAG=$CHEF_PACKAGE_VERSION \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64,linux/arm64,linux/386,linux/arm/v7 \
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Don't we have the same problem here with respect to Alpine?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

latest should always be Debian, isn’t it?

@LukeMathWalker
Copy link
Copy Markdown
Owner

#334 provides the same functionality (and a few more tags) 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: consider building docker images for armv7 architecture

2 participants