postgis / docker-postgis

Docker image for PostGIS
https://hub.docker.com/r/postgis/postgis/
MIT License
1.35k stars 462 forks source link

docker build ARM images dont run #325

Closed liyin37 closed 1 year ago

liyin37 commented 1 year ago

https://github.com/postgis/docker-postgis/tree/master/12-3.3 when I docker build successful in ARM server I run this docker images,find errors: image

ImreSamu commented 1 year ago

Thanks for posting this issue!

Please use "GitHub markdown - for Quoting code/logs"

when I docker build successful in ARM server

interesting ..

please share all your commands:

And please share your other important info ( system, hardware )

Important:

liyin37 commented 1 year ago

@

Thanks for posting this issue!

Please use "GitHub markdown - for Quoting code/logs"

  • "To format code or text into its own distinct block, use triple backticks."

when I docker build successful in ARM server

interesting ..

please share all your commands:

And please share your other important info ( system, hardware )

Important:

  • the repository uses: VERSION=12-3.3 VARIANT=default make build command to build the image.

thanks,but when I use docker build --pull happen new errors

[root@geos docker-postgis]# cd 12-3.3/ [root@geos 12-3.3]# ls -l total 16 drwxr-xr-x 2 root root 4096 Oct 15 09:11 alpine -rw-r--r-- 1 root root 803 Oct 15 09:11 Dockerfile -rwxr-xr-x 1 root root 731 Oct 15 09:11 initdb-postgis.sh -rwxr-xr-x 1 root root 1045 Oct 15 09:11 update-postgis.sh [root@geos 12-3.3]# docker build --pull -t postgis:12.3-3 . image

liyin37 commented 1 year ago

[root@geos ~]# uname -r 4.18.0-80.7.2.el7.aarch64 [root@geos ~]# uname -a Linux geos 4.18.0-80.7.2.el7.aarch64 #1 SMP Thu Sep 12 16:13:20 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

ImreSamu commented 1 year ago

Thanks!

-rw-r--r-- 1 root root 803 Oct 15 09:11 Dockerfile

Please use the latest "master" version !

The current /12-3.3/Dockerfile


FROM postgres:12-bullseye

LABEL maintainer="PostGIS Project - https://postgis.net"

ENV POSTGIS_MAJOR 3
ENV POSTGIS_VERSION 3.3.2+dfsg-1.pgdg110+1

RUN apt-get update \
      && apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
      && apt-get install -y --no-install-recommends \
           # ca-certificates: for accessing remote raster files;
           #   fix: https://github.com/postgis/docker-postgis/issues/307
           ca-certificates \
           \
           postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
           postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
      && rm -rf /var/lib/apt/lists/*

RUN mkdir -p /docker-entrypoint-initdb.d
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/10_postgis.sh
COPY ./update-postgis.sh /usr/local/bin
liyin37 commented 1 year ago

@ImreSamu I rebuild it in new dockerfile image

but I run error image