annotate postgres/Dockerfile @ 80:5c093612ce89

DEP-10: add uuid extension to database
author smith@nwoca.org
date Fri, 08 Apr 2016 21:40:03 +0100
parents 82b5ed864aee
children 53671513b240
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
13
82b5ed864aee DEP-7: set subdirectory for pgdata on volume
smith@nwoca.org
parents: 3
diff changeset
4 FROM postgres:9.4.5
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