-
Notifications
You must be signed in to change notification settings - Fork 290
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
armhf Dockerhub images fail to build #1048
Comments
This is most likely an architecture limitation; Docker Hub resources used to build images are x86_64-based so building images for other platforms requires extra steps. At a quick glance, the following solutions are available:
See:
I've disabled the corresponding automated builds for now (triggered on the non-existent We should properly document that Dockerfiles are available for the |
Yes, the build went seamlessly on the box itself with for example this command:
One idea that came to my mind is how the linuxserver.io guys are publishing all their armhf images on dockerhub, isn't there something in their repo(s), some config, some reference, etc that we could use to be able to run it automatically and without much hacks? I've never published anything on dockerhub, so I don't really know, just an idea. |
There are two ways of publishing images to the hub:
I guess most automated ARM HF images are generated either using ARM build hosts, or using qemu for cross-platform image generation. |
Oh, I see, thanks for the explanation! |
Just to note that docker has a new experimental tool called buildx that builds images for other platforms. E.g. on x86 build for ARM. So it should be very easy to build & publish ARM images. |
- python2 no longer available in alpine 3.16 - ref. #1048
After applying https://github.com/shaarli/Shaarli/pull/1869/files and a bit of trial and error, armhf images build correctly for me $ docker buildx build -f Dockerfile.armhf .
# ...
# 0 3.234 exec /bin/sh: exec format error
$ sudo apt install -y qemu-user-static binfmt-support
$ docker buildx build -f Dockerfile.armhf .
# ...
# 0 2.731 ERROR: unable to select packages:
# 0 2.799 py2-pip (no such package):
$ sed -i 's/py2/py3/g' Dockerfile.armhf
$ sed -i 's/python2/python3/g' Dockerfile.armhf
$ docker buildx build -f Dockerfile.armhf .
# ...
# => => writing image sha256:9396bc0f2dd81728d5c2f635c790a74a9dd4935d227ace41d49a48195eaf6cd9 0.0s Building for armhf on an amd64 machine with buildx is noticeably slower, but it works. I have added the required changes to the already open PR #1869. I have no ARM machine to test deploying/running it. Can someone clone the |
- python2 no longer available in alpine 3.16 - ref. #1048
- python2 no longer available in alpine 3.16 - ref. #1048
Let's add the armhf build procedure to https://github.com/shaarli/Shaarli/blob/master/.github/workflows/docker-latest.yml / https://github.com/shaarli/Shaarli/blob/master/.github/workflows/docker-tags.yml ? Otherwise this can be closed. |
Related #1962 |
Anyway this issue was about |
As shown on https://hub.docker.com/r/shaarli/shaarli/builds/, https://hub.docker.com/r/shaarli/shaarli/builds/bt4aqnydjrxyusqe8bmpjb3/, automatic builds of the
armhf-latest
andarmhf-master
images fail with:The text was updated successfully, but these errors were encountered: