mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
Merge pull request #3365 from yixingjia/updatepostgresql
Update OSS in postgresql image
This commit is contained in:
commit
687275f2ae
2
Makefile
2
Makefile
@ -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]
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user