Skip to content

Commit 3206abe

Browse files
author
Vladimir Rutsky
committed
update 9.1 configuration to include PostGIS 1.5
1 parent 7da97b6 commit 3206abe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

9.1-postgis-1.5/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# vim:set ft=dockerfile:
2-
FROM debian:jessie
2+
FROM ubuntu:12.04
33

44
# explicitly set user/group IDs
55
RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=999 postgres
@@ -28,16 +28,17 @@ RUN mkdir /docker-entrypoint-initdb.d
2828
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
2929

3030
ENV PG_MAJOR 9.1
31-
ENV PG_VERSION 9.1.22-1.pgdg80+1
31+
ENV PG_VERSION 9.1.22-1.pgdg12.4+1
3232

33-
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list
33+
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list
3434

3535
RUN apt-get update \
3636
&& apt-get install -y postgresql-common \
3737
&& sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \
3838
&& apt-get install -y \
3939
postgresql-$PG_MAJOR=$PG_VERSION \
4040
postgresql-contrib-$PG_MAJOR=$PG_VERSION \
41+
&& apt-get install -y postgresql-9.1-postgis \
4142
&& rm -rf /var/lib/apt/lists/*
4243

4344
# make the sample config easier to munge (and "correct by default")

0 commit comments

Comments
 (0)