mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
build: switch to golang:1.3 and build go for KUBE_CROSSPLATFORMS
This commit is contained in:
parent
2a30ce65c5
commit
521f145fb5
@ -14,12 +14,15 @@
|
|||||||
|
|
||||||
# This file creates a standard build environment for building Kubernetes
|
# This file creates a standard build environment for building Kubernetes
|
||||||
|
|
||||||
FROM golang:cross
|
FROM golang:1.3
|
||||||
MAINTAINER Joe Beda <jbeda@google.com>
|
MAINTAINER Joe Beda <jbeda@google.com>
|
||||||
|
|
||||||
ENV KUBE_CROSSPLATFORMS \
|
ENV KUBE_CROSSPLATFORMS \
|
||||||
linux/386 linux/arm \
|
linux/386 linux/arm \
|
||||||
darwin/amd64 darwin/386
|
darwin/amd64 darwin/386
|
||||||
|
|
||||||
|
RUN cd /usr/src/go/src && for platform in ${KUBE_CROSSPLATFORMS}; do GOOS=${platform%/*} GOARCH=${platform##*/} ./make.bash --no-clean; done
|
||||||
|
|
||||||
# (set an explicit GOARM of 5 for maximum compatibility)
|
# (set an explicit GOARM of 5 for maximum compatibility)
|
||||||
ENV GOARM 5
|
ENV GOARM 5
|
||||||
ENV GOOS linux
|
ENV GOOS linux
|
||||||
|
Loading…
Reference in New Issue
Block a user