xbvr icon indicating copy to clipboard operation
xbvr copied to clipboard

Arm based Docker builds

Open Tweeticoats opened this issue 5 years ago • 3 comments

I have an arm based nas (helios 4) and need a arm docker image. To get this to work I needed to make 2 changes: Line 8 you are downloading go with curl but the linux-amd64 arch. Could we add an ARCH variable as I need to download linux-armv6l when building the image.

The other problem I have is you are using distoless base image and there is no arm image. Changing this to a basic debian image allows me to build and run this inside a container. I can see the reason for using this but is there a similar project that supports arm as well as amd64?

Tweeticoats avatar Feb 13 '20 12:02 Tweeticoats

I have no experience with multi-arch Docker images, but think it’s a low hanging fruit

cld9x avatar Feb 13 '20 22:02 cld9x

Need to install : https://github.com/docker/buildx

docker buildx build
--push
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ --tag xbapps xbvr:buildx-latest .

https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

bounty1342 avatar Sep 14 '20 23:09 bounty1342

This would be a nice feature

kjboa avatar Dec 25 '21 08:12 kjboa