Skip to content
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

ARM64 / Apple Silicon builds in Docker Hub #301

Closed
agusterodin opened this issue Apr 12, 2021 · 11 comments
Closed

ARM64 / Apple Silicon builds in Docker Hub #301

agusterodin opened this issue Apr 12, 2021 · 11 comments

Comments

@agusterodin
Copy link

The only version in Docker Hub is only x86-64. The image does not work on Apple Silicon (M1) even with Docker qemu emulation. Do you have any suggestions on how to get it to work?

@NyakudyaA
Copy link
Collaborator

Hi @agusterodin unfortunately we are not yet privileged enough to own the new shinny M1. Is there any docker image that is working on the new M1. If so can , which one is it. The idea is that we need to compare what base image the working image is using.

@agusterodin
Copy link
Author

agusterodin commented Apr 13, 2021

I have built an arm64 version on my machine. It appears to work perfectly. It is on the docker hub under jeffrosen1092/postgis:latest. Is there anything else I can do to help?

@NyakudyaA
Copy link
Collaborator

Thanks, @agusterodin, You could do a PR so that we can incorporate it with this image.
We are also looking at various ways to tag our images so that they can be used for different situation ie redhat etc

@NyakudyaA
Copy link
Collaborator

And also can you add a link to your dockerhub

@agusterodin
Copy link
Author

@agusterodin
Copy link
Author

What exactly should the PR contain? I performed the build on my machine with this command docker build -t kartoza/postgis git://github.com/kartoza/docker-postgis.

Doesn't this boil down to updating the pipeline (and maybe dockerfile)? I've heard that people that build with Github Actions are blocked by the fact that you can't build ARM64 on their pipelines (similar to what is mentioned here postgis/docker-postgis#216)

@NyakudyaA
Copy link
Collaborator

Thanks @agusterodin i think the link describes the issue clearly, I think the solution for now should be

  • build the image locally
  • Investigate how GitHub actions can be improved to build images compatible for silicon - this should be the long term solutions but since we maintain this image pro-bono we will wait for solutions from the community or someone to sponsor us to develop a solution (GitHub action)

@janfilips
Copy link

I have built an arm64 version on my machine. It appears to work perfectly. It is on the docker hub under jeffrosen1092/postgis:latest.

Well it's not anymore (and it did work for me perfectly).. :-/

@agusterodin
Copy link
Author

agusterodin commented Oct 15, 2021

I have built an arm64 version on my machine. It appears to work perfectly. It is on the docker hub under jeffrosen1092/postgis:latest.

Well it's not anymore (and it did work for me perfectly).. :-/

My bad, see the above PR. There are official ARM64 builds on Docker Hub now! No need to use my stopgap image anymore.

@agusterodin
Copy link
Author

Use this one instead, for example: kartoza/postgis:14-3.1

@janfilips
Copy link

Thank you very much big sir! :) :) :) 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants