Add harbor migrator into offline installer (#4596)

This commit is contained in:
Yan 2018-04-08 19:30:50 -07:00 committed by Jesse Hu
parent d94699dca3
commit cd584822c1

View File

@ -102,7 +102,7 @@ NOTARYVERSION=v0.5.1
MARIADBVERSION=$(VERSIONTAG) MARIADBVERSION=$(VERSIONTAG)
CLAIRVERSION=v2.0.1 CLAIRVERSION=v2.0.1
CLAIRDBVERSION=$(VERSIONTAG) CLAIRDBVERSION=$(VERSIONTAG)
MIGRATORVERSION=1.4 MIGRATORVERSION=v1.5.0-test
REDISVERSION=$(VERSIONTAG) REDISVERSION=$(VERSIONTAG)
#clarity parameters #clarity parameters
@ -239,7 +239,7 @@ ifeq ($(CLAIRFLAG), true)
DOCKERCOMPOSE_LIST+= -f $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSECLAIRFILENAME) DOCKERCOMPOSE_LIST+= -f $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSECLAIRFILENAME)
endif endif
ifeq ($(MIGRATORFLAG), true) ifeq ($(MIGRATORFLAG), true)
DOCKERSAVE_PARA+= vmware/harbor-db-migrator:$(MIGRATORVERSION) DOCKERSAVE_PARA+= vmware/harbor-migrator:$(MIGRATORVERSION)
endif endif
version: version:
@ -346,8 +346,8 @@ package_offline: compile version build modify_sourcefiles modify_composefile
@cp $(HARBORPKG)/photon/db/registry.sql $(HARBORPKG)/ha/ @cp $(HARBORPKG)/photon/db/registry.sql $(HARBORPKG)/ha/
@if [ "$(MIGRATORFLAG)" = "true" ] ; then \ @if [ "$(MIGRATORFLAG)" = "true" ] ; then \
echo "pulling DB migrator..."; \ echo "pulling Harbor migrator..."; \
$(DOCKERPULL) vmware/harbor-db-migrator:$(MIGRATORVERSION); \ $(DOCKERPULL) vmware/harbor-migrator:$(MIGRATORVERSION); \
fi fi
@echo "saving harbor docker image" @echo "saving harbor docker image"