Skip to content

Commit

Permalink
cleanup Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramraman committed Sep 21, 2018
1 parent 6878597 commit 06b75dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 47 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ build: vendor
build-query:
CGO_ENABLED=0 GOARCH=$(ARCH) go build -a -tags netgo -o $(OUT_DIR)/$(ARCH)/wavefront-query ./cmd/wavefront-query/

# Build linux executable using container (useful on Mac)
linux-build:
./deploy/docker-build.sh $(VERSION)
# Build linux executable
build-linux: vendor
CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -a -tags netgo -o $(OUT_DIR)/$(ARCH)/wavefront-adapter-linux ./cmd/wavefront-adapter/

vendor: glide.lock
glide install -v
Expand All @@ -36,10 +36,9 @@ gofmt:

verify: verify-gofmt test

# TODO: rever to be based out of build or none at all?
container: linux-build
container: build-linux
cp deploy/Dockerfile $(TEMP_DIR)
cp $(OUT_DIR)/$(ARCH)/wavefront-adapter $(TEMP_DIR)/wavefront-adapter
cp $(OUT_DIR)/$(ARCH)/wavefront-adapter-linux $(TEMP_DIR)/wavefront-adapter
cd $(TEMP_DIR)
docker build -t $(DOCKER_REPO)/$(DOCKER_IMAGE)-$(ARCH):$(VERSION) $(TEMP_DIR)
docker tag $(DOCKER_REPO)/$(DOCKER_IMAGE)-$(ARCH):$(VERSION) $(DOCKER_REPO)/$(DOCKER_IMAGE):latest
Expand Down
11 changes: 0 additions & 11 deletions deploy/Dockerfile-build

This file was deleted.

30 changes: 0 additions & 30 deletions deploy/docker-build.sh

This file was deleted.

0 comments on commit 06b75dc

Please sign in to comment.