File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
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:
14
14
- cd $HOME/gopath/src/k8s.io/node-problem-detector
15
15
script :
16
16
- make test
17
- - go build -race
17
+ - make node-problem-detector
Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ PROJ = google_containers
9
9
10
10
PKG_SOURCES := $(shell find pkg -name '* .go')
11
11
12
- node-problem-detector : ./bin/node-problem-detector
13
-
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
12
+ node-problem-detector : $(PKG_SOURCES ) node_problem_detector.go
13
+ GOOS=linux go build -ldflags ' -w -extldflags "-static"' -o node-problem-detector
16
14
17
15
test :
18
16
go test -timeout=1m -v -race ./pkg/...
@@ -24,4 +22,4 @@ push: container
24
22
gcloud docker push gcr.io/$(PROJ ) /node-problem-detector:$(TAG )
25
23
26
24
clean :
27
- rm -f ./bin/ node-problem-detector
25
+ rm -f node-problem-detector
You can’t perform that action at this time.
0 commit comments