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
2928d0a8
Commit
2928d0a8
authored
Mar 27, 2016
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up to golang 1.6
parent
cdf456af
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
28 deletions
+27
-28
.travis.yml
.travis.yml
+1
-1
Dockerfile
build/build-image/cross/Dockerfile
+20
-21
VERSION
build/build-image/cross/VERSION
+1
-1
common.sh
build/common.sh
+1
-1
build-etcd.sh
cluster/images/etcd/build-etcd.sh
+1
-1
Dockerfile
cluster/mesos/docker/test/Dockerfile
+1
-1
development.md
docs/devel/development.md
+1
-1
shippable.yml
shippable.yml
+1
-1
No files found.
.travis.yml
View file @
2928d0a8
...
@@ -11,7 +11,7 @@ language: go
...
@@ -11,7 +11,7 @@ language: go
matrix
:
matrix
:
include
:
include
:
-
go
:
1.
5.3
-
go
:
1.
6.0
install
:
install
:
-
go get github.com/tools/godep
-
go get github.com/tools/godep
...
...
build/build-image/cross/Dockerfile
View file @
2928d0a8
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
# This file creates a standard build environment for building cross
# This file creates a standard build environment for building cross
# platform go binary for the architecture kubernetes cares about.
# platform go binary for the architecture kubernetes cares about.
FROM
golang:1.4.2
FROM
golang:1.6.0
ENV
GOARM 6
ENV
GOARM 6
ENV
KUBE_DYNAMIC_CROSSPLATFORMS \
ENV
KUBE_DYNAMIC_CROSSPLATFORMS \
...
@@ -27,24 +27,24 @@ ENV KUBE_CROSSPLATFORMS \
...
@@ -27,24 +27,24 @@ ENV KUBE_CROSSPLATFORMS \
darwin/amd64 darwin/386 \
darwin/amd64 darwin/386 \
windows/amd64 windows/386
windows/amd64 windows/386
RUN
cd
/usr/src/go/src
\
# Pre-compile the standard go library when cross-compiling. This is much easier now when we have go1.5+
&&
for
platform
in
${
KUBE_CROSSPLATFORMS
}
;
do
GOOS
=
${
platform
%/*
}
GOARCH
=
${
platform
##*/
}
./make.bash
--no-clean
;
done
RUN for
platform
in
${
KUBE_CROSSPLATFORMS
}
;
do
GOOS
=
${
platform
%/*
}
GOARCH
=
${
platform
##*/
}
go
install
std
;
done
# Install g++, then download and install protoc for generating protobuf output
# Install g++, then download and install protoc for generating protobuf output
RUN
apt-get update
\
RUN
apt-get update
\
&&
apt-get
install
-y
g++ rsync
\
&&
apt-get
install
-y
g++ rsync
\
&&
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
&&
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
mkdir
-p
/usr/local/src/protobuf
&&
cd
/usr/local/src/protobuf
&&
\
RUN
mkdir
-p
/usr/local/src/protobuf
\
wget
-q
https://github.com/google/protobuf/releases/download/v3.0.0-beta-2/protobuf-cpp-3.0.0-beta-2.tar.gz
&&
\
&&
cd
/usr/local/src/protobuf
\
tar
xzvf protobuf-cpp-3.0.0-beta-2.tar.gz
&&
\
&&
curl
-sSL
https://github.com/google/protobuf/releases/download/v3.0.0-beta-2/protobuf-cpp-3.0.0-beta-2.tar.gz |
tar
-xzv
\
cd
protobuf-3.0.0-beta-2
&&
\
&&
cd
protobuf-3.0.0-beta-2
\
./configure
&&
\
&&
./configure
\
make
install
&&
\
&&
make
install
\
ldconfig
&&
\
&&
ldconfig
\
cd
..
&&
\
&&
cd
..
\
rm
-rf
protobuf-3.0.0-beta-2
&&
\
&&
rm
-rf
protobuf-3.0.0-beta-2
\
protoc
--version
&&
protoc
--version
# Use dynamic cgo linking for architectures other than amd64 for the server platforms
# Use dynamic cgo linking for architectures other than amd64 for the server platforms
# More info here: https://wiki.debian.org/CrossToolchains
# More info here: https://wiki.debian.org/CrossToolchains
...
@@ -60,13 +60,12 @@ RUN echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.
...
@@ -60,13 +60,12 @@ RUN echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.
ENV
TMPDIR /tmp.k8s
ENV
TMPDIR /tmp.k8s
# Get the code coverage tool and godep
# Get the code coverage tool and godep
RUN
mkdir
$TMPDIR
&&
\
RUN
mkdir
$TMPDIR
\
go get golang.org/x/tools/cmd/cover github.com/tools/godep
&&
go get golang.org/x/tools/cmd/cover github.com/tools/godep
# Download and symlink etcd.
We need this for our integration tests.
# Download and symlink etcd. We need this for our integration tests.
RUN
export
ETCD_VERSION
=
v2.2.1
;
\
RUN
export
ETCD_VERSION
=
v2.2.1
;
\
mkdir
-p
/usr/local/src/etcd
&&
\
mkdir
-p
/usr/local/src/etcd
\
cd
/usr/local/src/etcd
&&
\
&&
cd
/usr/local/src/etcd
\
curl
-fsSLO
https://github.com/coreos/etcd/releases/download/
$ETCD_VERSION
/etcd-
$ETCD_VERSION
-linux-amd64
.tar.gz
&&
\
&&
curl
-fsSL
https://github.com/coreos/etcd/releases/download/
${
ETCD_VERSION
}
/etcd-
${
ETCD_VERSION
}
-linux-amd64
.tar.gz |
tar
-xz
\
tar
xzf etcd-
$ETCD_VERSION
-linux-amd64
.tar.gz
&&
\
&&
ln
-s
../src/etcd/etcd-
${
ETCD_VERSION
}
-linux-amd64
/etcd /usr/local/bin/
ln
-s
../src/etcd/etcd-
$ETCD_VERSION
-linux-amd64
/etcd /usr/local/bin/
build/build-image/cross/VERSION
View file @
2928d0a8
v1.
4.2
-1
v1.
6.0
-1
build/common.sh
View file @
2928d0a8
...
@@ -48,7 +48,7 @@ readonly KUBE_GCS_DELETE_EXISTING="${KUBE_GCS_DELETE_EXISTING:-n}"
...
@@ -48,7 +48,7 @@ readonly KUBE_GCS_DELETE_EXISTING="${KUBE_GCS_DELETE_EXISTING:-n}"
# Constants
# Constants
readonly
KUBE_BUILD_IMAGE_REPO
=
kube-build
readonly
KUBE_BUILD_IMAGE_REPO
=
kube-build
readonly
KUBE_BUILD_IMAGE_CROSS_TAG
=
"v1.
4.2
-1"
readonly
KUBE_BUILD_IMAGE_CROSS_TAG
=
"v1.
6.0
-1"
# KUBE_BUILD_DATA_CONTAINER_NAME=kube-build-data-<hash>"
# KUBE_BUILD_DATA_CONTAINER_NAME=kube-build-data-<hash>"
# Here we map the output directories across both the local and remote _output
# Here we map the output directories across both the local and remote _output
...
...
cluster/images/etcd/build-etcd.sh
View file @
2928d0a8
...
@@ -27,7 +27,7 @@ TAG=$1
...
@@ -27,7 +27,7 @@ TAG=$1
ARCH
=
$2
ARCH
=
$2
TARGET_DIR
=
$3
TARGET_DIR
=
$3
GOLANG_VERSION
=
${
GOLANG_VERSION
:-
1
.
5.3
}
GOLANG_VERSION
=
${
GOLANG_VERSION
:-
1
.
6.0
}
GOARM
=
6
GOARM
=
6
# Create the ${TARGET_DIR} directory, if it doesn't exist
# Create the ${TARGET_DIR} directory, if it doesn't exist
...
...
cluster/mesos/docker/test/Dockerfile
View file @
2928d0a8
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
FROM
golang:1.
4.3
FROM
golang:1.
6.0
MAINTAINER
Mesosphere <support@mesosphere.io>
MAINTAINER
Mesosphere <support@mesosphere.io>
# docker.io is suppossed to be in backports, but it's not there yet.
# docker.io is suppossed to be in backports, but it's not there yet.
...
...
docs/devel/development.md
View file @
2928d0a8
...
@@ -54,7 +54,7 @@ Kubernetes is written in the [Go](http://golang.org) programming language. If yo
...
@@ -54,7 +54,7 @@ Kubernetes is written in the [Go](http://golang.org) programming language. If yo
### Go versions
### Go versions
Requires Go version 1.4.x
or 1.5
.x
Requires Go version 1.4.x
, 1.5.x or 1.6
.x
## Git setup
## Git setup
...
...
shippable.yml
View file @
2928d0a8
...
@@ -4,7 +4,7 @@ language: go
...
@@ -4,7 +4,7 @@ language: go
matrix
:
matrix
:
include
:
include
:
-
go
:
1.
5.3
-
go
:
1.
6.0
env
:
env
:
-
KUBE_TEST_API_VERSIONS=v1,extensions/v1beta1 KUBE_TEST_ETCD_PREFIXES=registry
-
KUBE_TEST_API_VERSIONS=v1,extensions/v1beta1 KUBE_TEST_ETCD_PREFIXES=registry
-
KUBE_JUNIT_REPORT_DIR="${SHIPPABLE_REPO_DIR}/shippable/testresults"
-
KUBE_JUNIT_REPORT_DIR="${SHIPPABLE_REPO_DIR}/shippable/testresults"
...
...
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