Update Go version to 1.7.4
parent
aff2d7ce64
commit
30bea335a4
|
@ -10,6 +10,7 @@
|
|||
- [#7356](https://github.com/influxdata/influxdb/issues/7356): Use X-Forwarded-For IP address in HTTP logger if present.
|
||||
- [#7601](https://github.com/influxdata/influxdb/issues/7601): Prune data in meta store for deleted shards.
|
||||
- [#7669](https://github.com/influxdata/influxdb/issues/7669): Uncomment section headers from the default configuration file.
|
||||
- [#7684](https://github.com/influxdata/influxdb/issues/7684): Update Go version to 1.7.4.
|
||||
|
||||
### Bugfixes
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ second to sign our CLA, which can be found
|
|||
|
||||
Installing Go
|
||||
-------------
|
||||
InfluxDB requires Go 1.7.3.
|
||||
InfluxDB requires Go 1.7.4.
|
||||
|
||||
At InfluxDB we find gvm, a Go version manager, useful for installing Go. For instructions
|
||||
on how to install it see [the gvm page on github](https://github.com/moovweb/gvm).
|
||||
|
@ -77,8 +77,8 @@ on how to install it see [the gvm page on github](https://github.com/moovweb/gvm
|
|||
After installing gvm you can install and set the default go version by
|
||||
running the following:
|
||||
|
||||
gvm install go1.7.3
|
||||
gvm use go1.7.3 --default
|
||||
gvm install go1.7.4
|
||||
gvm use go1.7.4 --default
|
||||
|
||||
Installing GDM
|
||||
-------------
|
||||
|
|
|
@ -11,12 +11,12 @@ To build a docker image for InfluxDB from your current checkout, run the followi
|
|||
$ ./build-docker.sh
|
||||
```
|
||||
|
||||
This script uses the `golang:1.7.3` image to build a fully static binary of `influxd` and then adds it to a minimal `scratch` image.
|
||||
This script uses the `golang:1.7.4` image to build a fully static binary of `influxd` and then adds it to a minimal `scratch` image.
|
||||
|
||||
To build the image using a different version of go:
|
||||
|
||||
```
|
||||
$ GO_VER=1.7.3 ./build-docker.sh
|
||||
$ GO_VER=1.7.4 ./build-docker.sh
|
||||
```
|
||||
|
||||
Available version can be found [here](https://hub.docker.com/_/golang/).
|
||||
|
|
|
@ -18,7 +18,7 @@ RUN gem install fpm
|
|||
|
||||
# Install go
|
||||
ENV GOPATH /root/go
|
||||
ENV GO_VERSION 1.7.3
|
||||
ENV GO_VERSION 1.7.4
|
||||
ENV GO_ARCH 386
|
||||
RUN wget https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \
|
||||
tar -C /usr/local/ -xf /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz ; \
|
||||
|
|
|
@ -21,7 +21,7 @@ RUN gem install fpm
|
|||
|
||||
# Install go
|
||||
ENV GOPATH /root/go
|
||||
ENV GO_VERSION 1.7.3
|
||||
ENV GO_VERSION 1.7.4
|
||||
ENV GO_ARCH amd64
|
||||
RUN wget https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \
|
||||
tar -C /usr/local/ -xf /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz ; \
|
||||
|
|
|
@ -26,7 +26,7 @@ VOLUME $PROJECT_DIR
|
|||
|
||||
|
||||
# Install go
|
||||
ENV GO_VERSION 1.7.3
|
||||
ENV GO_VERSION 1.7.4
|
||||
ENV GO_ARCH amd64
|
||||
RUN wget https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \
|
||||
tar -C /usr/local/ -xf /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz ; \
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -e -x
|
||||
|
||||
GO_VER=${GO_VER:-1.7.3}
|
||||
GO_VER=${GO_VER:-1.7.4}
|
||||
|
||||
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'
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ machine:
|
|||
services:
|
||||
- docker
|
||||
environment:
|
||||
GODIST: "go1.7.3.linux-amd64.tar.gz"
|
||||
GODIST: "go1.7.4.linux-amd64.tar.gz"
|
||||
post:
|
||||
- mkdir -p download
|
||||
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
|
||||
|
|
Loading…
Reference in New Issue