Skip to content

Commit

Permalink
Fix the storage-provisioner build. This needs to be built statically.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorenc authored and dlorenc committed Nov 6, 2017
1 parent f46b2fd commit 0fe440e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,14 @@ $(ISO_BUILD_IMAGE): deploy/iso/minikube-iso/Dockerfile
@echo "$(@) successfully built"

out/storage-provisioner: $(shell $(STORAGE_PROVISIONER_FILES))
go build -o $(BUILD_DIR)/storage-provisioner cmd/storage-provisioner/main.go
go build GOOS=linux -o $(BUILD_DIR)/storage-provisioner -ldflags=$(LOCALKUBE_LDFLAGS) cmd/storage-provisioner/main.go

.PHONY: storage-provisioner-image
storage-provisioner-image: out/storage-provisioner
docker build -t $(REGISTRY)/storage-provisioner:$(TAG) -f deploy/storage-provisioner/Dockerfile .

.PHONY: push-storage-provisioner-image
push-storage-provisioner-image: storage-provisioner-image
gcloud docker -- push $(REGISTRY)/storage-provisioner:$(TAG)

.PHONY: release-iso
Expand Down

0 comments on commit 0fe440e

Please sign in to comment.