dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

docker image for armv7 (Raspbarry PI)

Open bigklata opened this issue 3 years ago • 3 comments

Hi Hoellen, Thanks for nice build! Is it possible for you to publish image for other architecture such armv7 for raspbarry pi which is very common use to build small NAS? It may help with doing multiple architecture build: https://www.docker.com/blog/getting-started-with-docker-for-arm-on-linux/

Regards

bigklata avatar Dec 27 '20 11:12 bigklata

Found that you have dependency on other your image with nginx which also need this action. I think will have impact on popularity :smile:

bigklata avatar Dec 27 '20 11:12 bigklata

ARM images would be great. I would have to get into the topic...

hoellen avatar Jan 03 '21 12:01 hoellen

i build and used your image on arm64 successfully and saw this "issue" i was able to compile multiple platform via buildx. should be rather easy to implement in a manual workflow. You can work with hooks if you got some automated workflow running, but i don't know a lot about that. Would be nice if we could get added smth like that:

#register static qemu
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

#create a builder and use it
docker buildx create --name mybuilder
docker buildx use mybuilder

#login
export DOCKER_USER="mydockerhubuser"
docker login -u "$DOCKER_USER" # Enter Password

#build with buildx
"cd dockerfiles/nginx-php"
docker buildx build -t "${DOCKER_USER}/nginx-php:7.4" \
  --platform linux/amd64,linux/arm64,linux/arm --push --file Dockerfile.7.4 .

cd dockerfiles/nextcloud
docker buildx build -t "${DOCKER_USER}/nextcloud:21.0.0RC2" \
  --platform linux/amd64,linux/arm64,linux/arm --push --file Dockerfile.21.0 .

switched image and it works fine testbuild

burnbabyburn avatar Feb 16 '21 00:02 burnbabyburn