Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
89179140
Commit
89179140
authored
Feb 03, 2016
by
Saad Ali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20577 from zmerlynn/revert-19985
Revert to Go 1.4.2
parents
d4da1ee3
e87b93f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Dockerfile
build/build-image/cross/Dockerfile
+3
-5
common.sh
build/common.sh
+1
-1
No files found.
build/build-image/cross/Dockerfile
View file @
89179140
...
...
@@ -15,17 +15,15 @@
# This file creates a standard build environment for building cross
# platform go binary for the architecture kubernetes cares about.
FROM
golang:1.5.3
# Original MAINTAINER Joe Beda <jbeda@google.com>
MAINTAINER
Brendan Burns <bburns@google.com>
FROM
golang:1.4.2
MAINTAINER
Joe Beda <jbeda@google.com>
ENV
KUBE_CROSSPLATFORMS \
linux/386 linux/arm \
darwin/amd64 darwin/386 \
windows/amd64 windows/386
# Pre-compile the standard go library when cross-compiling. This is much easier now when we have go1.5
RUN for
platform
in
${
KUBE_CROSSPLATFORMS
}
;
do
GOOS
=
${
platform
%/*
}
GOARCH
=
${
platform
##*/
}
go
install
std
;
done
RUN
cd
/usr/src/go/src
&&
for
platform
in
${
KUBE_CROSSPLATFORMS
}
;
do
GOOS
=
${
platform
%/*
}
GOARCH
=
${
platform
##*/
}
./make.bash
--no-clean
;
done
# Install g++, then download and install protoc for generating protobuf output
RUN
apt-get
install
-y
g++
&&
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
&&
\
...
...
build/common.sh
View file @
89179140
...
...
@@ -48,7 +48,7 @@ readonly KUBE_GCS_DELETE_EXISTING="${KUBE_GCS_DELETE_EXISTING:-n}"
# Constants
readonly
KUBE_BUILD_IMAGE_REPO
=
kube-build
readonly
KUBE_BUILD_GOLANG_VERSION
=
1.
5.3
readonly
KUBE_BUILD_GOLANG_VERSION
=
1.
4.2
readonly
KUBE_BUILD_IMAGE_CROSS_TAG
=
"cross-
${
KUBE_BUILD_GOLANG_VERSION
}
-1"
readonly
KUBE_BUILD_IMAGE_CROSS
=
"
${
KUBE_BUILD_IMAGE_REPO
}
:
${
KUBE_BUILD_IMAGE_CROSS_TAG
}
"
# KUBE_BUILD_DATA_CONTAINER_NAME=kube-build-data-<hash>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment