build arm64 images
Opened this issue · 3 comments
We should be building arm64 images, not only amd64. It is also requested by mcr
Hi can someone help on how to approach this and go about this? I am a new contributor here
Porter's mission is to be a widely accessible cloud-native apps CLI, yet it doesn't support arm, that is widely used nowadays server- and clientside. This issue deserves more attention from core maintainers as it is directly correlated to the success of adopting Porter and CNAB.
From what I see, to make progress would be to add arm to these locations(?):
Line 354 in 39d28db
Line 367 in 39d28db
- all hard-coded mentions of architecture https://github.com/getporter/porter/tree/main/build/images
Go builds should use as already defaulted as ARGS by Docker BuildKit:
GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build
Docker builds should add a platforms flag:
docker build --platform linux/amd64,linux/arm64 .