-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add build for ARM64, remove assumption of running on AMD64 #5284
Conversation
…ning on amd64 Signed-off-by: Jonah Back <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #5284 +/- ##
=======================================
Coverage 41.07% 41.07%
=======================================
Files 136 136
Lines 18365 18372 +7
=======================================
+ Hits 7544 7547 +3
- Misses 9742 9745 +3
- Partials 1079 1080 +1
Continue to review full report at Codecov.
|
Dockerfile
Outdated
make BIN_NAME=argocd-windows-amd64.exe GOOS=windows argocd-all \ | ||
make BIN_NAME=argocd-windows-amd64.exe GOOS=windows argocd-all && \ | ||
make BIN_NAME=argocd-linux-amd64 GOOS=linux GOARCH=amd64 argocd-all && \ | ||
make BIN_NAME=argocd-linux-arm64 GOOS=linux GOARCH=arm64 argocd-all \ |
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.
Correct me if I am wrong. But, this change will create an additional binary (85MB est) which is duplicate of argocd
binary built here
Signed-off-by: Jonah Back <[email protected]>
Latest commit should help keep the image size down - instead of adding an additional binary, if BUILD_ALL_CLIS is set, it will use a symlink to map |
@backjo |
This PR does two things - it adds a new build target for the cli (linux arm64), and it removes an assumption that the 'argocd' binary is built for amd64. This is a bug we noticed when running Argo CD on ARM-based instances - downloading the linux-amd64 binary for CLI (argocd-linux-amd64) was actually built for arm64, since the container was running on ARM64.
Signed-off-by: Jonah Back [email protected]
Checklist: