Use preferred go1.4.3 for docker images too.

Some people (e.g. me!) use build-docker.sh to create docker images.

I got burnt by the go 1.5 performance issue because I didn't override
the default GO_VER variable.

This change sets the default to the same as used in the main build.

Signed-off-by: Jon Seymour <jon@wildducktheories.com>
pull/6183/head
Jon Seymour 2016-04-01 21:17:15 +11:00
parent 425ef2c32a
commit f45263da91
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
set -e -x
GO_VER=${GO_VER:-1.5}
GO_VER=${GO_VER:-1.4.3}
docker run -it -v "${GOPATH}":/gopath -v "$(pwd)":/app -e "GOPATH=/gopath" -w /app golang:$GO_VER sh -c 'CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o influxd ./cmd/influxd'