Created
August 11, 2018 09:49
-
-
Save thaim/b49913bb468414a54656ff417280654e to your computer and use it in GitHub Desktop.
migrate harbor 1.1 to 1.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db_pwd='root123' | |
harbor_db_path='/data/database' | |
harbor_cfg='/home/thaim/harbor-1.1.1/harbor.cfg' | |
tag='1.2' | |
docker run -it --rm \ | |
-e DB_USR=root \ | |
-e DB_PWD=${db_pwd} \ | |
-v ${harbor_db_path}:/var/lib/mysql \ | |
-v ${harbor_cfg}:/harbor-migration/harbor-cfg/harbor.cfg \ | |
vmware/harbor-db-migrator:${tag} up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment