File tree Expand file tree Collapse file tree 7 files changed +12
-10
lines changed Expand file tree Collapse file tree 7 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
all : build
4
4
5
- IMAGE_NAME: =2017-q2
5
+ IMAGE_NAME: =9.6
6
6
7
7
build :
8
8
docker build -t metabrainz/postgres-base:$(IMAGE_NAME ) postgres-base/
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ BUILD_DEPS=" \
10
10
libc6-dev \
11
11
libicu-dev \
12
12
make \
13
- postgresql-server-dev-9.5 "
13
+ postgresql-server-dev-9.6 "
14
14
15
15
ICU_PKG=$( apt-cache search --names-only ' ^libicu5[0-9]$' | awk ' {print $1}' )
16
16
Original file line number Diff line number Diff line change 4
4
5
5
RUN_DEPS=" \
6
6
locales \
7
- postgresql-9.5 \
8
- postgresql-contrib-9.5 \
9
- postgresql-plperl-9.5 \
7
+ postgresql-9.6 \
8
+ postgresql-contrib-9.6 \
9
+ postgresql-plperl-9.6 \
10
10
rsync"
11
11
12
+ add-apt-repository ' deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main'
13
+ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
12
14
apt-get update
13
15
14
16
apt-get install \
@@ -34,7 +36,7 @@ mkdir -p $PGDATA
34
36
chown -R postgres:postgres $PGDATA
35
37
36
38
chpst -u postgres:postgres \
37
- /usr/lib/postgresql/9.5 /bin/initdb \
39
+ /usr/lib/postgresql/9.6 /bin/initdb \
38
40
--data-checksums \
39
41
--encoding utf8 \
40
42
--no-locale \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
exec chpst -u postgres:postgres \
4
- /usr/lib/postgresql/9.5 /bin/postgres \
4
+ /usr/lib/postgresql/9.6 /bin/postgres \
5
5
-D /var/lib/postgresql/data \
6
6
-c config_file=/etc/postgresql/postgresql.conf \
7
7
-c hba_file=/etc/postgresql/pg_hba.conf
Original file line number Diff line number Diff line change 1
- FROM metabrainz/postgres-base:2017-q2
1
+ FROM metabrainz/postgres-base:9.6
2
2
3
3
COPY \
4
4
consul-template-postgres.conf \
Original file line number Diff line number Diff line change 1
- FROM metabrainz/postgres-base:2017-q2
1
+ FROM metabrainz/postgres-base:9.6
2
2
3
3
# These services should not be started until data is copied from the master.
4
4
RUN touch \
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ if [ -e "$ARCHIVE_FILE" ]; then
14
14
else
15
15
# "The command will be asked for file names that are not present in the
16
16
# archive; it must return nonzero when so asked."
17
- # https://www.postgresql.org/docs/9.5 /static/archive-recovery-settings.html
17
+ # https://www.postgresql.org/docs/9.6 /static/archive-recovery-settings.html
18
18
exit 1
19
19
fi
You can’t perform that action at this time.
0 commit comments