-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Docker user on arm #142
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was surprised that this should be a problem only on arm64
, given that we're using the same Alpine base image for all architectures.
For what it's worth, the original (master
) docker build works for me and I'm wondering whether your issue was just a fluke.
That said, I don't mind using a generic UID, however see my inline comments about the group.
Use simple USER directive. Using `addgroup` in final `arm` image when building on amd64 doesn't work. I must have made a mistake during cross build verification. Alternative is to use qemu-static but it's not worth it for this.
Were you able to build all the docker images using
When I run
Note building |
Thanks for the clarification. I understand the issue better now. The images on quay are currently built and pushed manually by us while we work on revamping CI. This is a temporary state of affairs but for testing it may still be valuable to do it locally and your PR should allow that to succeed. |
Thank you! Saw the other issue about Prow. Sorry, I'm not building on Regardless, this PR does allow me to build all 3 arches (amd64, arm64, armv6) on my amd64 laptop. |
Description
Use simple USER directive.
Using
addgroup
in finalarm
image when building on amd64 doesn't work.I must have made a mistake during cross build verification in #85 .
Alternative is to use qemu-static but it's not worth it for this.
Motivation and Context
Currently
make docker-all
fails on arm image build:How Has This Been Tested?
make docker-all
succeeds.Verifying
--version
on arm64.Verifying user on arm64.
Checklist: