harbor/src/adminserver
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
..
api Add monitor API for Harbor components. 2018-03-15 10:39:55 +08:00
auth Store secret in header instead of cookie 2018-04-07 22:02:06 +08:00
client Update the HTTP client for easy use by add more util functions 2017-12-16 06:45:59 +08:00
handlers Add monitor API for Harbor components. 2018-03-15 10:39:55 +08:00
systemcfg Initialise Harbor DB schema in Harbor UI/adminserver container 2018-06-28 16:22:53 +08:00
systeminfo Return zero instead of error if the volume directory is not found at admin server 2018-02-28 13:52:33 +08:00
main.go replace go header 2017-04-13 03:54:58 -07:00