Closed
Description
Here is the code if someone needs it. I don't have time to make pull requests for the other distribs, sorry.
FROM postgres:12
MAINTAINER Mike Dillon <[email protected]>
ENV POSTGIS_MAJOR 3
#ENV POSTGIS_VERSION 2.5.3+dfsg-1~exp1.pgdg100+1
#ENV POSTGIS_VERSION 3.0.0~alpha4+dfsg-2~exp1.pgdg100+1
ENV POSTGIS_VERSION 3.0.0~rc1+dfsg-1~exp2~220.git765f6ff.pgdg100+1
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg-testing main" >> /etc/apt/sources.list.d/pgdg.list \
&& apt-get update \
&& apt-cache showpkg postgis-$POSTGIS_MAJOR \
&& apt-get install -y --no-install-recommends \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \
postgis=$POSTGIS_VERSION \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /docker-entrypoint-initdb.d
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh
COPY ./update-postgis.sh /usr/local/bin
Metadata
Metadata
Assignees
Labels
No labels