mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
parent
66c71d5074
commit
3eaee03906
13
Makefile
13
Makefile
@ -170,7 +170,9 @@ REGISTRYUSER=user
|
|||||||
REGISTRYPASSWORD=default
|
REGISTRYPASSWORD=default
|
||||||
|
|
||||||
version:
|
version:
|
||||||
@$(SEDCMD) -i 's/version=\"{{.Version}}\"/version=\"$(VERSIONTAG)\"/' -i $(VERSIONFILEPATH)/$(VERSIONFILENAME)
|
if [ "$(DEVFLAG)" = "false" ] ; then \
|
||||||
|
$(SEDCMD) -i 's/version=\"{{.Version}}\"/version=\"$(VERSIONTAG)\"/' -i $(VERSIONFILEPATH)/$(VERSIONFILENAME) ; \
|
||||||
|
fi
|
||||||
|
|
||||||
check_environment:
|
check_environment:
|
||||||
@$(MAKEPATH)/$(CHECKENVCMD)
|
@$(MAKEPATH)/$(CHECKENVCMD)
|
||||||
@ -213,10 +215,6 @@ build_common: version
|
|||||||
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."
|
||||||
|
|
||||||
@echo "pulling nginx and registry..."
|
|
||||||
$(DOCKERPULL) registry:2.5.0
|
|
||||||
$(DOCKERPULL) nginx:1.9
|
|
||||||
|
|
||||||
build_photon: build_common
|
build_photon: build_common
|
||||||
make -f $(MAKEFILEPATH_PHOTON)/Makefile build -e DEVFLAG=$(DEVFLAG)
|
make -f $(MAKEFILEPATH_PHOTON)/Makefile build -e DEVFLAG=$(DEVFLAG)
|
||||||
|
|
||||||
@ -262,6 +260,11 @@ package_offline: compile build modify_composefile
|
|||||||
|
|
||||||
@cp LICENSE $(HARBORPKG)/LICENSE
|
@cp LICENSE $(HARBORPKG)/LICENSE
|
||||||
@cp NOTICE $(HARBORPKG)/NOTICE
|
@cp NOTICE $(HARBORPKG)/NOTICE
|
||||||
|
|
||||||
|
@echo "pulling nginx and registry..."
|
||||||
|
$(DOCKERPULL) registry:2.5.0
|
||||||
|
$(DOCKERPULL) nginx:1.9
|
||||||
|
|
||||||
@echo "saving harbor docker image"
|
@echo "saving harbor docker image"
|
||||||
$(DOCKERSAVE) -o $(HARBORPKG)/$(DOCKERIMGFILE).$(VERSIONTAG).tgz \
|
$(DOCKERSAVE) -o $(HARBORPKG)/$(DOCKERIMGFILE).$(VERSIONTAG).tgz \
|
||||||
$(DOCKERIMAGENAME_UI):$(VERSIONTAG) \
|
$(DOCKERIMAGENAME_UI):$(VERSIONTAG) \
|
||||||
|
Loading…
Reference in New Issue
Block a user