Closed liyin37 closed 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:
full - docker build
docker build --pull -t postgis/postgis:12-3.3 12-3.3
--pull
is very important! --pull
"Always attempt to pull a newer version of the image"and a minimal test code
And please share your other important info ( system, hardware )
Important:
VERSION=12-3.3 VARIANT=default make build
command to build the image.@
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:
full - docker build
example
docker build --pull -t postgis/postgis:12-3.3 12-3.3
The
--pull
is very important!
--pull
"Always attempt to pull a newer version of the image"- https://stackoverflow.com/questions/58488535/whats-the-purpose-of-docker-build-pull
- and a minimal test code
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 .
[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
Thanks!
-rw-r--r-- 1 root root 803 Oct 15 09:11 Dockerfile
Please use the latest "master" version !
ENV POSTGIS_VERSION 3.3.2+dfsg-1.pgdg110+1
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
@ImreSamu I rebuild it in new dockerfile
but I run error
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: