annotate postgres/Dockerfile @ 177:f18dcd16595a

flow: Merged <hotfix> 'v1.2.1' to <develop> ('default').
author smith@nwoca.org
date Tue, 05 Sep 2017 20:55:32 +0100
parents 11fb5ba7f55b
children b0b52c426f16
rev   line source
3
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
1 #
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
2 # Docker file to create postgres image for ssdt applications
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
3
151
11fb5ba7f55b DEP-12: make postgres 9.6 available
smith@nwoca.org
parents: 116
diff changeset
4 FROM postgres:9.6.3
3
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
5
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
6 MAINTAINER Dave Smith smith@nwoca.org
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
7
13
82b5ed864aee DEP-7: set subdirectory for pgdata on volume
smith@nwoca.org
parents: 3
diff changeset
8 ENV DB_NAME=database \
82b5ed864aee DEP-7: set subdirectory for pgdata on volume
smith@nwoca.org
parents: 3
diff changeset
9 DB_USER=dbuser \
82b5ed864aee DEP-7: set subdirectory for pgdata on volume
smith@nwoca.org
parents: 3
diff changeset
10 DB_PASS=dbpassword \
82b5ed864aee DEP-7: set subdirectory for pgdata on volume
smith@nwoca.org
parents: 3
diff changeset
11 PGDATA=/var/lib/postgresql/data/pgdata
3
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
12
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
13 COPY setupDatabase.sh /docker-entrypoint-initdb.d/setupDatabase.sh
0cdc167e6319 DEP-2: postgres dockerfile
smith@nwoca.org
parents:
diff changeset
14
80
5c093612ce89 DEP-10: add uuid extension to database
smith@nwoca.org
parents: 13
diff changeset
15 COPY setupExtensions.sh /docker-entrypoint-initdb.d/setupExtensions.sh
5c093612ce89 DEP-10: add uuid extension to database
smith@nwoca.org
parents: 13
diff changeset
16
5c093612ce89 DEP-10: add uuid extension to database
smith@nwoca.org
parents: 13
diff changeset
17 RUN chmod 755 /docker-entrypoint-initdb.d/setupDatabase.sh \
5c093612ce89 DEP-10: add uuid extension to database
smith@nwoca.org
parents: 13
diff changeset
18 & chmod 755 /docker-entrypoint-initdb.d/setupExtensions.sh
5c093612ce89 DEP-10: add uuid extension to database
smith@nwoca.org
parents: 13
diff changeset
19
81
53671513b240 DEP-10: add timezone and locale settings. add java base image. add native APR for tomcat
smith@nwoca.org
parents: 80
diff changeset
20 ENV TZ=America/New_York
53671513b240 DEP-10: add timezone and locale settings. add java base image. add native APR for tomcat
smith@nwoca.org
parents: 80
diff changeset
21
53671513b240 DEP-10: add timezone and locale settings. add java base image. add native APR for tomcat
smith@nwoca.org
parents: 80
diff changeset
22 RUN echo $TZ > /etc/timezone \
53671513b240 DEP-10: add timezone and locale settings. add java base image. add native APR for tomcat
smith@nwoca.org
parents: 80
diff changeset
23 && dpkg-reconfigure --frontend noninteractive tzdata
116
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
24
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
25 COPY ssdt-entrypoint.sh /usr/local/bin/
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
26
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
27 RUN chmod 755 /usr/local/bin/ssdt-entrypoint.sh
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
28
151
11fb5ba7f55b DEP-12: make postgres 9.6 available
smith@nwoca.org
parents: 116
diff changeset
29 LABEL "io.ssdt.type"="db"
11fb5ba7f55b DEP-12: make postgres 9.6 available
smith@nwoca.org
parents: 116
diff changeset
30
116
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
31 ENTRYPOINT ["ssdt-entrypoint.sh"]
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
32
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
33 CMD ["postgres"]
4b8eb7301ae0 DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents: 81
diff changeset
34