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 M1 postgREST/postgrest docker image please #1979

Closed
saxomagic opened this issue Oct 15, 2021 · 4 comments
Closed

ARM64 Apple M1 postgREST/postgrest docker image please #1979

saxomagic opened this issue Oct 15, 2021 · 4 comments
Labels
ci Related to CI setup docker

Comments

@saxomagic
Copy link

Environment

  • PostgreSQL version: postgREST/postgrest docker image
  • PostgREST version: postgREST/postgrest docker image
  • Operating system:OSX on M1 chip

Description of issue

Please can you provide a arm64 M1 build of the docker image? Current behavior on Docker for Mac eats and eats memory, but fails to start. Asking because the build process seems quite involved, using nix and haskell.

@KeaganStokoe
Copy link

+1. Also desperate for an arm64 build for the docker image, struggling on the Apple M1 without it. Any other workarounds/solutions are also very welcome

@wolfgangwalther wolfgangwalther added ci Related to CI setup docker labels Oct 18, 2021
@wolfgangwalther
Copy link
Member

Related to #1117 (is this a duplicate?) and #1785.

@saxomagic
Copy link
Author

Jip @wolfgangwalther you are correct: it is a duplicate. Apologies - only came across those ones today.

The workaround of 4 GB docker RAM and 4 GB swap to work for now, but a arm64 build would be much better, with the Nix built image being 4 MB in size only.

Have tried the Nix build, but doc docs do not seem to have info on how to actually get the built image out - or I might be missing something.

@saxomagic
Copy link
Author

Hi - closed this one: #1979 because it is a duplicate, but not because it has been resolved - just making sure there is no misunderstanding. Would very much appreciate an arm64 M1-compatible docker image built with Nix. Also, documentation is not clear on how to proceed with the Nix build using the Nix docker image for running the nix-shell for build and dev, so perhaps a bit more there on how to actually get the Nix-built docker image of PostgREST out into DockerHub? Apologies if that part is self study / common knowledge, but having build docker images with docker build and pushed to DockerHub before, this method with Nix is quite a bit different.
Btw, the documentation is really awesome in general, so my compliments to all the effort that has gone into that - learned a lot just by reading it - thanks much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Related to CI setup docker
Development

No branches or pull requests

3 participants