File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- / bin /node-problem-detector
1+ . /node-problem-detector
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ install:
1414 - cd $HOME/gopath/src/k8s.io/node-problem-detector
1515script :
1616 - make test
17- - go build -race
17+ - make node-problem-detector
Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ PROJ = google_containers
99
1010PKG_SOURCES := $(shell find pkg -name '* .go')
1111
12- node-problem-detector : ./bin/node-problem-detector
12+ dep :
13+ which godep || go get github.com/tools/godep
1314
14- ./bin/ node-problem-detector : $(PKG_SOURCES ) node_problem_detector.go
15- CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags ' -w ' -o node-problem-detector
15+ node-problem-detector : $(PKG_SOURCES ) node_problem_detector.go dep
16+ GOOS=linux godep go build -ldflags ' -w -extldflags "-static" ' -o node-problem-detector
1617
1718test :
1819go test -timeout=1m -v -race ./pkg/...
@@ -24,4 +25,4 @@ push: container
2425gcloud docker push gcr.io/$(PROJ ) /node-problem-detector:$(TAG )
2526
2627clean :
27- rm -f ./bin/ node-problem-detector
28+ rm -f node-problem-detector
You can’t perform that action at this time.
0 commit comments