mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-15 23:05:57 +01:00
b44c9d01dd
Drop pg9.6, will not support upgrading from pg9.6 to pg13, if you use pg9.6 you can upgrade to 2.5 and upgrade to 2.7 Signed-off-by: Yang Jiao <jiaoya@vmware.com>
20 lines
881 B
Docker
20 lines
881 B
Docker
ARG harbor_base_image_version
|
|
ARG harbor_base_namespace
|
|
FROM ${harbor_base_namespace}/harbor-db-base:${harbor_base_image_version}
|
|
|
|
VOLUME /var/lib/postgresql/data
|
|
|
|
COPY ./make/photon/db/docker-entrypoint.sh /docker-entrypoint.sh
|
|
COPY ./make/photon/db/initdb.sh /initdb.sh
|
|
COPY ./make/photon/db/upgrade.sh /upgrade.sh
|
|
COPY ./make/photon/db/docker-healthcheck.sh /docker-healthcheck.sh
|
|
COPY ./make/photon/db/initial-notaryserver.sql /docker-entrypoint-initdb.d/
|
|
COPY ./make/photon/db/initial-notarysigner.sql /docker-entrypoint-initdb.d/
|
|
COPY ./make/photon/db/initial-registry.sql /docker-entrypoint-initdb.d/
|
|
RUN chown -R postgres:postgres /docker-entrypoint.sh /docker-healthcheck.sh /docker-entrypoint-initdb.d \
|
|
&& chmod u+x /docker-entrypoint.sh /docker-healthcheck.sh
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh", "", "13"]
|
|
HEALTHCHECK CMD ["/docker-healthcheck.sh"]
|
|
|
|
USER postgres |