tianon / docker-postgres-upgrade

a PoC for using "pg_upgrade" inside Docker -- learn from it, adapt it for your needs; don't expect it to work as-is!
https://hub.docker.com/r/tianon/postgres-upgrade/
MIT License
1.04k stars 114 forks source link

Docker image for ARM64 (aarch64 / Arm Ampere) architecture #82

Closed Dmitriusan closed 11 months ago

Dmitriusan commented 11 months ago

Hi! First, thanks for such an incredible tool.

Would you please consider also publishing versions of Docker images for aarch64 architecture? A lot of cloud providers are already suggesting attractive options (like https://www.oracle.com/cloud/compute/arm/ ), so this architecture is becoming more common. Current images are built for arm64 architecture and can not be used

  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  84s                default-scheduler  Successfully assigned default/postgres-upgrade-job-p8b4x to omen
  Normal   Pulling    41s (x3 over 84s)  kubelet            Pulling image "tianon/postgres-upgrade:15-to-16"
  Warning  Failed     39s (x3 over 82s)  kubelet            Failed to pull image "tianon/postgres-upgrade:15-to-16": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/tianon/postgres-upgrade:15-to-16": no match for platform in manifest: not found
  Warning  Failed     39s (x3 over 82s)  kubelet            Error: ErrImagePull
  Normal   BackOff    2s (x5 over 81s)   kubelet            Back-off pulling image "tianon/postgres-upgrade:15-to-16"
  Warning  Failed     2s (x5 over 81s)   kubelet            Error: ImagePullBackOff

If I understand correctly, that is just a matter of adding an arm64 architecture tag to the script that renders the template and using Postgres containers/repos for this architecture

tianon commented 11 months ago

Duplicate of https://github.com/tianon/docker-postgres-upgrade/issues/43 👀