harbor/make/photon
Daniel Jiang c9b1962b1e Initialise Harbor DB schema in Harbor UI/adminserver container
This commit fixes #5040, the harbor-db image will only contain empty
databases, and harbor ui container will use migrate tool to run initial
SQL scripts to do initialization.  This is helpful for the case to
configure Harbor against external DB or DBaaS like RDS for HA deployment
However, this change will results some confusion as there are two tables
to track schema versions have been using alembic for migration, for this
release we'll try to use alembic to mock a `migration` table during
upgrade so the migrator will be bypassed, in future we'll consider to
consolidate to the golang based migrator.
Another issue is that the UI and adminserver containers will access DB
after start up in different congurations, can't ensure the sequence, so
both of them will try to update the schema when started up.
2018-06-28 16:22:53 +08:00
..
adminserver Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
clair Do not call chown to config files 2018-04-20 13:44:21 +08:00
db Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
jobservice enable migrator to support 1.5.0 migration from mysql to pgsql (#5029) 2018-06-01 14:58:43 +08:00
log Reduce the output of build. 2018-02-27 20:54:52 +08:00
nginx Use new health check api for docker files 2018-03-29 13:00:28 +08:00
notary enable migrator to support 1.5.0 migration from mysql to pgsql (#5029) 2018-06-01 14:58:43 +08:00
redis Collect log of redis 2018-04-30 18:16:11 +08:00
registry Do not call chown to config files 2018-04-20 13:44:21 +08:00
ui Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
Makefile enable migrator to support 1.5.0 migration from mysql to pgsql (#5029) 2018-06-01 14:58:43 +08:00