2019-11-12 04:20:54 +01:00
|
|
|
ARG harbor_base_image_version
|
2019-11-11 11:56:36 +01:00
|
|
|
FROM goharbor/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
|
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-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/
|
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
|
|
|
|
2019-08-01 10:02:08 +02:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2019-07-30 07:04:28 +02:00
|
|
|
HEALTHCHECK CMD ["/docker-healthcheck.sh"]
|
2018-06-01 08:58:43 +02:00
|
|
|
|
|
|
|
EXPOSE 5432
|
2019-07-30 07:04:28 +02:00
|
|
|
USER postgres
|