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
3df16731
Commit
3df16731
authored
Jan 22, 2016
by
Zach Loafman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19994 from zmerlynn/cross-version
build: Use Go version in cross image tag
parents
3a15a374
07c304b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Dockerfile
build/build-image/Dockerfile
+4
-1
common.sh
build/common.sh
+4
-7
No files found.
build/build-image/Dockerfile
View file @
3df16731
...
...
@@ -14,7 +14,10 @@
# This file creates a standard build environment for building Kubernetes
FROM
kube-build:cross
# We replace KUBE_BUILD_IMAGE_CROSS in build/common.sh with the actual
# cross-build image tag.
FROM
KUBE_BUILD_IMAGE_CROSS
MAINTAINER
Joe Beda <jbeda@google.com>
# (set an explicit GOARM of 5 for maximum compatibility)
...
...
build/common.sh
View file @
3df16731
...
...
@@ -48,13 +48,9 @@ readonly KUBE_GCS_DELETE_EXISTING="${KUBE_GCS_DELETE_EXISTING:-n}"
# Constants
readonly
KUBE_BUILD_IMAGE_REPO
=
kube-build
# These get set in verify_prereqs with a unique hash based on KUBE_ROOT
# KUBE_BUILD_IMAGE_TAG=<hash>
# KUBE_BUILD_IMAGE="${KUBE_BUILD_IMAGE_REPO}:${KUBE_BUILD_IMAGE_TAG}"
# KUBE_BUILD_CONTAINER_NAME=kube-build-<hash>
readonly
KUBE_BUILD_IMAGE_CROSS_TAG
=
cross
readonly
KUBE_BUILD_GOLANG_VERSION
=
1.5.3
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
}
"
readonly
KUBE_BUILD_GOLANG_VERSION
=
1.4
# KUBE_BUILD_DATA_CONTAINER_NAME=kube-build-data-<hash>
# Here we map the output directories across both the local and remote _output
...
...
@@ -416,7 +412,7 @@ function kube::build::build_image_built() {
function
kube::build::ensure_golang
()
{
kube::build::docker_image_exists golang
"
${
KUBE_BUILD_GOLANG_VERSION
}
"
||
{
[[
${
KUBE_SKIP_CONFIRMATIONS
}
=
~ ^[yY]
$
]]
||
{
echo
"You don't have a local copy of the golang docker image. This image is 450MB."
echo
"You don't have a local copy of the golang
:
${
KUBE_BUILD_GOLANG_VERSION
}
docker image. This image is 450MB."
read
-p
"Download it now? [y/n] "
-r
echo
[[
$REPLY
=
~ ^[yY]
$
]]
||
{
...
...
@@ -476,6 +472,7 @@ function kube::build::build_image() {
kube::version::save_version_vars
"
${
build_context_dir
}
/kube-version-defs"
cp
build/build-image/Dockerfile
${
build_context_dir
}
/Dockerfile
sed
-i
"s/KUBE_BUILD_IMAGE_CROSS/
${
KUBE_BUILD_IMAGE_CROSS
}
/"
${
build_context_dir
}
/Dockerfile
# We don't want to force-pull this image because it's based on a local image
# (see kube::build::build_image_cross), not upstream.
kube::build::docker_build
"
${
KUBE_BUILD_IMAGE
}
"
"
${
build_context_dir
}
"
'false'
...
...
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