-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fixup arm64 build; Remove amd64 hardcode from Makefile to make it more flexible; #1942
Conversation
Thanks for your PR! Let me take a look. |
I am fine with a change which lets you compile for For instance, you could set an environment variable indicating the target architecture when running You should also choose the correct base docker image (matching the target architecture). |
Hi @2opremio , I have updated PR according to the comments: new ARCH variable has been added. It has default value set to
The base alpine images are multi-arch ones by default. So no need to change anything here. I have tested the generated images and they looks pretty fine for me:
Note: if at some point you would like to build official arm/arm64 images you may need to adopt Thanks |
Can you update Also, optionally:
(2) probably doesn't make much sense without (1). And, as mentioned, they are both optional but desirable, you (or anybody interested) can do it in a later PR if you preferred. EDIT: reformatted the comment |
Sure. Good points. Will take a look. |
Great, can you also squash the commits once you are done? |
Sure. One question tho...
is it b/c of windows and macos systems used for development purposes do not have strip/shasum binaries? will it be ok if i just change it to |
Only partly. It's because |
hm...
does not seems to be an issue related to my changes tho.... |
No, that's #1948 :S |
Mkay. After merge with master tests are passed. But now it looks like I squashed the commits in an odd way so PR looks... weird? :) |
@brezerk it would be better to rebase on We just made some changes to the tests to pull images from Docker Hub instead of Quay.io due to it being unavailable to us. So an additional rebase is necessary. Thank you 🌷 |
git rebase... ok will take a look, thanks. I am not git wizard yet, sorry for all this spam >_< |
@brezerk did you close the PR intentionally? |
HW: Rock64 (arm64v8)
OS: Gentoo
Hi
Thank you for nice DevOps tool. I was looking forward to build if for my arm64 k8s cluster and got some issues.
Here you are the changes I had to make to compile the binaries and build the images.
Also, i have noticed comments/discussions around #1761 , #1411 and #1474 so i have tried to update Makefile accordingly.