Guess target arch on building time for multi arch builds #3199
Unanswered
alvarogg777
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Can you use that |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi buildah community!
How can anyone guess the target ARCH on building time, so building with --arch arm64 and --build-arg=ARCH=arm64v8 gets evaluated to an arm64 env variable to later download software from external sources (eg arm64 git releases).
I cannot figure out how to get the right arch I am targetting to. from uname -m, using the ENV command.
It seems that the only way out is to build a base image and add some configs to set extra information when the image is built, besides looking at some /lib files arch extensions.
But I think it may be useful as well to expose arch information as an env variable as docker does, so anyone could refactor some Dockerfiles faster to support multiarch.
Beta Was this translation helpful? Give feedback.
All reactions