mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
Add harbor migrator into offline installer (#4596)
This commit is contained in:
parent
d94699dca3
commit
cd584822c1
8
Makefile
8
Makefile
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user