mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 01:39:02 +00:00
Bump to go1.8.1 and remove the edge GOROOT
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# This file creates a standard build environment for building cross
|
||||
# platform go binary for the architecture kubernetes cares about.
|
||||
|
||||
FROM golang:1.7.5
|
||||
FROM golang:1.8.1
|
||||
|
||||
ENV GOARM 7
|
||||
ENV KUBE_DYNAMIC_CROSSPLATFORMS \
|
||||
@@ -77,12 +77,3 @@ RUN export ETCD_VERSION=v3.0.17; \
|
||||
&& cd /usr/local/src/etcd \
|
||||
&& curl -fsSL https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz | tar -xz \
|
||||
&& ln -s ../src/etcd/etcd-${ETCD_VERSION}-linux-amd64/etcd /usr/local/bin/
|
||||
|
||||
# TODO: Remove the need for two golang versions; when we use go1.8 for all other builds we can remove this
|
||||
ENV K8S_GOLANG_EDGE_VERSION=1.8.1 \
|
||||
K8S_EDGE_GOROOT=/usr/local/go_k8s_edge
|
||||
RUN mkdir -p ${K8S_EDGE_GOROOT} \
|
||||
&& curl -sSL https://golang.org/dl/go${K8S_GOLANG_EDGE_VERSION}.linux-amd64.tar.gz | tar -xz -C ${K8S_EDGE_GOROOT} --strip-components=1
|
||||
|
||||
# Prebuild the standard library for those platforms that need the edge GOROOT
|
||||
RUN for platform in linux/arm linux/ppc64le; do GOOS=${platform%/*} GOARCH=${platform##*/} GOROOT=${K8S_EDGE_GOROOT} go install std; done
|
||||
|
@@ -1 +1 @@
|
||||
v1.7.5-3
|
||||
v1.8.1-1
|
||||
|
Reference in New Issue
Block a user