File tree Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Expand file tree Collapse file tree 5 files changed +15
-5
lines changed Original file line number Diff line number Diff line change
1
+ /bin /node-problem-detector
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ install:
13
13
- mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/node-problem-detector
14
14
- cd $HOME/gopath/src/k8s.io/node-problem-detector
15
15
script :
16
- - go test -v -race ./pkg/...
16
+ - make test
17
17
- go build -race
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM alpine:3.1
15
+ FROM alpine:3.4
16
16
MAINTAINER Random Liu <
[email protected] >
17
- ADD node-problem-detector /node-problem-detector
17
+ ADD ./bin/ node-problem-detector /node-problem-detector
18
18
ADD config /config
19
19
ENTRYPOINT ["/node-problem-detector" , "--kernel-monitor=/config/kernel-monitor.json" ]
Original file line number Diff line number Diff line change
1
+ .PHONY : all container push clean node-problem-detector
2
+
1
3
all : push
2
4
3
5
# See node-problem-detector.yaml for the version currently running-- bump this ahead before rebuilding!
4
6
TAG = v0.2
5
7
6
8
PROJ = google_containers
7
9
8
- node-problem-detector : node_problem_detector.go
10
+ PKG_SOURCES := $(shell find pkg -name '* .go')
11
+
12
+ node-problem-detector : ./bin/node-problem-detector
13
+
14
+ ./bin/node-problem-detector : $(PKG_SOURCES ) node_problem_detector.go
9
15
CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags ' -w' -o node-problem-detector
10
16
17
+ test :
18
+ go test -timeout=1m -v -race ./pkg/...
19
+
11
20
container : node-problem-detector
12
21
docker build -t gcr.io/$(PROJ ) /node-problem-detector:$(TAG ) .
13
22
14
23
push : container
15
24
gcloud docker push gcr.io/$(PROJ ) /node-problem-detector:$(TAG )
16
25
17
26
clean :
18
- rm -f node-problem-detector
27
+ rm -f ./bin/ node-problem-detector
You can’t perform that action at this time.
0 commit comments