File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ COPY ./make/photon/db/initial-registry.sql /docker-entrypoint-initdb.d/
14
14
RUN chown -R postgres:postgres /docker-entrypoint.sh /docker-healthcheck.sh /docker-entrypoint-initdb.d \
15
15
&& chmod u+x /docker-entrypoint.sh /docker-healthcheck.sh
16
16
17
- ENTRYPOINT ["/docker-entrypoint.sh" , "" , "13 " ]
17
+ ENTRYPOINT ["/docker-entrypoint.sh" , "13 " , "14 " ]
18
18
HEALTHCHECK CMD ["/docker-healthcheck.sh" ]
19
19
20
- USER postgres
20
+ USER postgres
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ FROM photon:4.0
2
2
3
3
ENV PGDATA /var/lib/postgresql/data
4
4
5
- RUN tdnf install -y shadow gzip postgresql13 findutils bc >> /dev/null \
5
+ RUN tdnf install -y shadow gzip postgresql13 postgresql findutils bc >> /dev/null \
6
6
&& groupadd -r postgres --gid=999 \
7
7
&& useradd -m -r -g postgres --uid=999 postgres \
8
8
&& mkdir -p /docker-entrypoint-initdb.d \
9
9
&& mkdir -p /run/postgresql \
10
10
&& chown -R postgres:postgres /run/postgresql \
11
11
&& chmod 2777 /run/postgresql \
12
12
&& mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" \
13
- && sed -i "s|#listen_addresses = 'localhost'.*|listen_addresses = '*'|g" /usr/pgsql/13/ share/postgresql/postgresql.conf.sample \
14
- && sed -i "s|#unix_socket_directories = '/tmp'.*|unix_socket_directories = '/run/postgresql'|g" /usr/pgsql/13/ share/postgresql/postgresql.conf.sample \
13
+ && sed -i "s|#listen_addresses = 'localhost'.*|listen_addresses = '*'|g" /usr/share/postgresql/postgresql.conf.sample \
14
+ && sed -i "s|#unix_socket_directories = '/tmp'.*|unix_socket_directories = '/run/postgresql'|g" /usr/share/postgresql/postgresql.conf.sample \
15
15
&& tdnf clean all
16
16
17
17
RUN tdnf erase -y toybox && tdnf install -y util-linux net-tools
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ PGDATANEW=${PGDATA}/pg${PG_VERSION_NEW}
14
14
15
15
# We should block the upgrade path from 9.6 directly.
16
16
if [ -s $PGDATA /PG_VERSION ]; then
17
- echo " Upgrading from PostgreSQL 9.6 to PostgreSQL $PG_VERSION_NEW is not supported in the current Harbor release."
17
+ echo " Upgrading from PostgreSQL 9.6 to PostgreSQL $PG_VERSION_NEW is not supported in the current Harbor release."
18
18
echo " You should upgrade to previous Harbor firstly, then upgrade to current release."
19
19
exit 1
20
20
fi
@@ -56,7 +56,7 @@ if [ ! -s $PGDATANEW/PG_VERSION ]; then
56
56
rm -rf $PGDATAOLD
57
57
else
58
58
echo " init DB, DB version:$PG_VERSION_NEW "
59
- initPG $PGDATANEW true
59
+ initPG $PGDATANEW true
60
60
fi
61
61
fi
62
62
You can’t perform that action at this time.
0 commit comments