Add build for ARM64, remove assumption of running on AMD64#5284
Add build for ARM64, remove assumption of running on AMD64#5284backjo wants to merge 2 commits intoargoproj:masterfrom
Conversation
…ning on amd64 Signed-off-by: Jonah Back <jonah@jonahback.com>
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.
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 <jonah@jonahback.com>
|
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 jonah@jonahback.com
Checklist: