2015-08-19 17:12:56 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e -x
|
2015-08-07 16:45:06 +00:00
|
|
|
|
|
|
|
GO_VER=${GO_VER:-1.5}
|
|
|
|
|
2015-08-19 17:12:56 +00:00
|
|
|
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'
|
2015-08-07 16:45:06 +00:00
|
|
|
|
|
|
|
docker build -t influxdb .
|