File tree 7 files changed +7
-7
lines changed
7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 17
17
set -e
18
18
set -x
19
19
20
- CGO_ENABLED=0 go build -a -ldflags ' -extldflags "-static" -s' hello.go
20
+ CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags ' -extldflags "-static" -s' hello.go
Original file line number Diff line number Diff line change 1
1
all : kube2sky
2
2
3
3
kube2sky : kube2sky.go
4
- CGO_ENABLED=0 go build -a --ldflags ' -w' ./kube2sky.go
4
+ CGO_ENABLED=0 go build -a -installsuffix cgo - -ldflags ' -w' ./kube2sky.go
5
5
6
6
container : kube2sky
7
7
sudo docker build -t kubernetes/kube2sky .
Original file line number Diff line number Diff line change 1
1
all : skydns
2
2
3
3
skydns :
4
- CGO_ENABLED=0 go build -a --ldflags ' -w' github.com/skynetservices/skydns
4
+ CGO_ENABLED=0 go build -a -installsuffix cgo - -ldflags ' -w' github.com/skynetservices/skydns
5
5
6
6
container : skydns
7
7
sudo docker build -t kubernetes/skydns .
Original file line number Diff line number Diff line change 1
1
all : serve_hostname
2
2
3
3
serve_hostname : serve_hostname.go
4
- CGO_ENABLED=0 go build -a --ldflags ' -w' ./serve_hostname.go
4
+ CGO_ENABLED=0 go build -a -installsuffix cgo - -ldflags ' -w' ./serve_hostname.go
5
5
6
6
container : serve_hostname
7
7
sudo docker build -t kubernetes/serve_hostname .
Original file line number Diff line number Diff line change 1
1
all : push
2
2
3
3
test-webserver : test-webserver.go
4
- CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags ' -w' ./test-webserver.go
4
+ CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags ' -w' ./test-webserver.go
5
5
6
6
container : test-webserver
7
7
sudo docker build -t kubernetes/test-webserver .
Original file line number Diff line number Diff line change 1
1
all : push
2
2
3
3
webserver : webserver.go
4
- CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags ' -w' ./webserver.go
4
+ CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags ' -w' ./webserver.go
5
5
6
6
container : webserver
7
7
sudo docker build -t kubernetes/nettest .
Original file line number Diff line number Diff line change 1
1
all : push
2
2
3
3
server : server.go
4
- CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags ' -w' ./server.go
4
+ CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags ' -w' ./server.go
5
5
6
6
container : server
7
7
docker build -t kubernetes/liveness .
You can’t perform that action at this time.
0 commit comments