2019-11-12 04:20:54 +01:00
|
|
|
ARG harbor_base_image_version
|
2020-04-01 13:46:45 +02:00
|
|
|
ARG harbor_base_namespace
|
|
|
|
FROM ${harbor_base_namespace}/harbor-db-base:${harbor_base_image_version}
|
2018-11-06 06:08:58 +01:00
|
|
|
|
2018-06-01 08:58:43 +02:00
|
|
|
VOLUME /var/lib/postgresql/data
|
|
|
|
|
2019-08-01 10:02:08 +02:00
|
|
|
COPY ./make/photon/db/docker-entrypoint.sh /docker-entrypoint.sh
|
2021-05-20 10:25:50 +02:00
|
|
|
COPY ./make/photon/db/initdb.sh /initdb.sh
|
|
|
|
COPY ./make/photon/db/upgrade.sh /upgrade.sh
|
2019-07-30 07:04:28 +02:00
|
|
|
COPY ./make/photon/db/docker-healthcheck.sh /docker-healthcheck.sh
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/db/initial-registry.sql /docker-entrypoint-initdb.d/
|
2019-08-01 10:02:08 +02:00
|
|
|
RUN chown -R postgres:postgres /docker-entrypoint.sh /docker-healthcheck.sh /docker-entrypoint-initdb.d \
|
|
|
|
&& chmod u+x /docker-entrypoint.sh /docker-healthcheck.sh
|
2019-07-30 07:04:28 +02:00
|
|
|
|
2023-05-05 04:32:39 +02:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh", "13", "14"]
|
2019-07-30 07:04:28 +02:00
|
|
|
HEALTHCHECK CMD ["/docker-healthcheck.sh"]
|
2018-06-01 08:58:43 +02:00
|
|
|
|
2023-05-05 04:32:39 +02:00
|
|
|
USER postgres
|