Merge pull request #3365 from yixingjia/updatepostgresql

Update OSS in postgresql image
This commit is contained in:
yixingjia 2017-10-15 20:29:00 -07:00 committed by GitHub
commit 687275f2ae
3 changed files with 6 additions and 4 deletions

View File

@ -94,7 +94,7 @@ NEWCLARITYVERSION=
#clair parameters
CLAIRVERSION=v2.0.1-photon
CLAIRFLAG=false
CLAIRDBVERSION=9.6.4-photon
CLAIRDBVERSION=9.6.5-photon
#clarity parameters
CLARITYIMAGE=vmware/harbor-clarity-ui-builder[:tag]

View File

@ -1,8 +1,9 @@
FROM library/photon:1.0
FROM vmware/photon:1.0
ENV PGDATA /var/lib/postgresql/data
RUN touch /etc/localtime.bak \
&& tdnf distro-sync -y \
&& tdnf install -y sed shadow gzip postgresql\
&& groupadd -r postgres --gid=999 \
&& useradd -r -g postgres --uid=999 postgres \
@ -14,7 +15,8 @@ RUN touch /etc/localtime.bak \
&& sed -i "s|#listen_addresses = 'localhost'.*|listen_addresses = '*'|g" /usr/share/postgresql/postgresql.conf.sample \
&& sed -i "s|#unix_socket_directories = '/tmp'.*|unix_socket_directories = '/run/postgresql'|g" /usr/share/postgresql/postgresql.conf.sample \
&& touch /usr/share/locale/locale.alias \
&& locale-gen.sh en_US.UTF-8
&& locale-gen.sh en_US.UTF-8 \
&& tdnf clean all
VOLUME /var/lib/postgresql/data

View File

@ -17,7 +17,7 @@ services:
aliases:
- postgres
container_name: clair-db
image: vmware/postgresql:9.6.4-photon
image: vmware/postgresql:9.6.5-photon
restart: always
depends_on:
- log