mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Merge pull request #3666 from thockin/golang-static
Fix static builds in go1.4
This commit is contained in:
@@ -3,7 +3,7 @@ all: serve_hostname
|
||||
TAG = 1.0
|
||||
|
||||
serve_hostname: serve_hostname.go
|
||||
CGO_ENABLED=0 go build -a --ldflags '-w' ./serve_hostname.go
|
||||
CGO_ENABLED=0 go build -a -installsuffix cgo --ldflags '-w' ./serve_hostname.go
|
||||
|
||||
container: serve_hostname
|
||||
sudo docker build -t kubernetes/serve_hostname:$(TAG) .
|
||||
|
@@ -1,7 +1,7 @@
|
||||
all: push
|
||||
|
||||
test-webserver: test-webserver.go
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' ./test-webserver.go
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' ./test-webserver.go
|
||||
|
||||
container: test-webserver
|
||||
sudo docker build -t kubernetes/test-webserver .
|
||||
|
@@ -1,7 +1,7 @@
|
||||
all: push
|
||||
|
||||
webserver: webserver.go
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' ./webserver.go
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' ./webserver.go
|
||||
|
||||
container: webserver
|
||||
sudo docker build -t kubernetes/nettest .
|
||||
|
Reference in New Issue
Block a user