Merge pull request #3666 from thockin/golang-static

Fix static builds in go1.4
This commit is contained in:
Joe Beda
2015-01-21 10:07:41 -08:00
7 changed files with 7 additions and 7 deletions

View File

@@ -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) .

View File

@@ -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 .

View File

@@ -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 .