mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-02 22:18:29 +01:00
change prepare from build to install
This commit is contained in:
parent
a6e7a6ba45
commit
ba5994bf01
9
Makefile
9
Makefile
@ -169,8 +169,6 @@ PUSHSCRIPTNAME=pushimage.sh
|
|||||||
REGISTRYUSER=user
|
REGISTRYUSER=user
|
||||||
REGISTRYPASSWORD=default
|
REGISTRYPASSWORD=default
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
version:
|
version:
|
||||||
@$(SEDCMD) -i 's/version=\"{{.Version}}\"/version=\"$(VERSIONTAG)\"/' -i $(VERSIONFILEPATH)/$(VERSIONFILENAME)
|
@$(SEDCMD) -i 's/version=\"{{.Version}}\"/version=\"$(VERSIONTAG)\"/' -i $(VERSIONFILEPATH)/$(VERSIONFILENAME)
|
||||||
|
|
||||||
@ -210,7 +208,7 @@ prepare:
|
|||||||
@echo "preparing..."
|
@echo "preparing..."
|
||||||
$(MAKEPATH)/$(PREPARECMD) -conf $(CONFIGPATH)/$(CONFIGFILE)
|
$(MAKEPATH)/$(PREPARECMD) -conf $(CONFIGPATH)/$(CONFIGFILE)
|
||||||
|
|
||||||
build_common: prepare version
|
build_common: version
|
||||||
@echo "buildging db container for photon..."
|
@echo "buildging db container for photon..."
|
||||||
cd $(DOCKERFILEPATH_DB) && $(DOCKERBUILD) -f $(DOCKERFILENAME_DB) -t $(DOCKERIMAGENAME_DB):$(VERSIONTAG) .
|
cd $(DOCKERFILEPATH_DB) && $(DOCKERBUILD) -f $(DOCKERFILENAME_DB) -t $(DOCKERIMAGENAME_DB):$(VERSIONTAG) .
|
||||||
@echo "Done."
|
@echo "Done."
|
||||||
@ -226,16 +224,15 @@ build_ubuntu: build_common
|
|||||||
make -f $(MAKEFILEPATH_UBUNTU)/Makefile build -e DEVFLAG=$(DEVFLAG)
|
make -f $(MAKEFILEPATH_UBUNTU)/Makefile build -e DEVFLAG=$(DEVFLAG)
|
||||||
|
|
||||||
build: build_$(BASEIMAGE)
|
build: build_$(BASEIMAGE)
|
||||||
|
|
||||||
|
|
||||||
modify_composefile:
|
modify_composefile:
|
||||||
@echo "preparing tag:$(VERSIONTAG) docker-compose file..."
|
@echo "preparing tag:$(VERSIONTAG) docker-compose file..."
|
||||||
@cp $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSETPLFILENAME) $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSEFILENAME)
|
@cp $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSETPLFILENAME) $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSEFILENAME)
|
||||||
@$(SEDCMD) -i 's/image\: vmware.*/&:$(VERSIONTAG)/g' $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSEFILENAME)
|
@$(SEDCMD) -i 's/image\: vmware.*/&:$(VERSIONTAG)/g' $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSEFILENAME)
|
||||||
|
|
||||||
install: compile build modify_composefile
|
install: compile build prepare modify_composefile
|
||||||
@echo "loading harbor images..."
|
@echo "loading harbor images..."
|
||||||
$(DOCKERCOMPOSECMD) -f $(DOCKERCOMPOSEFILEPATH)/docker-compose.$(VERSIONTAG).yml up -d
|
$(DOCKERCOMPOSECMD) -f $(DOCKERCOMPOSEFILEPATH)/$(DOCKERCOMPOSEFILENAME) up -d
|
||||||
@echo "Install complete. You can visit harbor now."
|
@echo "Install complete. You can visit harbor now."
|
||||||
|
|
||||||
package_online: modify_composefile
|
package_online: modify_composefile
|
||||||
|
Loading…
Reference in New Issue
Block a user