From 8527fcac0ddaf4f5b06f58aa033ce6a171af8340 Mon Sep 17 00:00:00 2001 From: zryfish Date: Tue, 19 Jun 2018 17:33:08 +0800 Subject: [PATCH] Update Makefile change binary and image name to kubepshere-apiserver --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f7aad38f9..b0612bd0e 100644 --- a/Makefile +++ b/Makefile @@ -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"