Update Makefile

change binary and image name to kubepshere-apiserver
This commit is contained in:
zryfish
2018-06-19 17:33:08 +08:00
committed by GitHub
parent da2d8880e5
commit 8527fcac0d

View File

@@ -2,7 +2,7 @@
# Use of this source code is governed by a Apache license
# that can be found in the LICENSE file.
TARG.Name:=kubesphere
TRAG.Name:=kubesphere-apiserver
TRAG.Gopkg:=kubesphere.io/kubesphere
TRAG.Version:=$(TRAG.Gopkg)/pkg/version
@@ -90,7 +90,8 @@ build: fmt
mkdir -p ./tmp/bin && cp -r ./install/ ./tmp/
$(call get_build_flags)
$(RUN_IN_DOCKER) time go install -ldflags '$(BUILD_FLAG)' $(TRAG.Gopkg)/cmd/...
@docker build -t $(TARG.Name) -f ./Dockerfile.dev ./tmp
mv ./tmp/bin/cmd ./tmp/bin/$(TRAG.Name)
@docker build -t $(TRAG.Name) -f ./Dockerfile.dev ./tmp
@docker image prune -f 1>/dev/null 2>&1
@echo "build done"