mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-06 18:50:09 +01:00
6f335bdb1a
This change involves using non-root user to run the process of the docker images. Also made update in Dockerfile to make the containers support "read-only" and introduce "HEALTHCHECK". Note the "read-only" options are not enabled in docker-compose, to cover the very corner case when user wants to update the container filesystem manually. Remove read only option from docker-compose template by default
9 lines
244 B
Docker
9 lines
244 B
Docker
FROM vmware/mariadb-photon:10.2.8
|
|
|
|
HEALTHCHECK CMD mysqladmin -uroot -p$MYSQL_ROOT_PASSWORD ping
|
|
|
|
COPY registry.sql /docker-entrypoint-initdb.d/
|
|
COPY registry-flag.sh /docker-entrypoint-initdb.d/
|
|
COPY upgrade.sh /docker-entrypoint-updatedb.d/
|
|
|