influxdb/build-docker.sh

10 lines
269 B
Bash
Raw Normal View History

#!/bin/bash
2015-08-19 17:12:56 +00:00
set -e -x
2016-12-05 11:23:48 +00:00
GO_VER=${GO_VER:-1.7.4}
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'
docker build -t influxdb .