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
29c4fd6b
Commit
29c4fd6b
authored
Oct 22, 2014
by
Johan Euphrosine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: add KUBE_BUILD_GOLANG_VERSION
parent
d5e7ddb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common.sh
build/common.sh
+4
-3
No files found.
build/common.sh
View file @
29c4fd6b
...
@@ -48,6 +48,7 @@ readonly KUBE_BUILD_IMAGE_REPO=kube-build
...
@@ -48,6 +48,7 @@ readonly KUBE_BUILD_IMAGE_REPO=kube-build
# KUBE_BUILD_CONTAINER_NAME=kube-build-<hash>
# KUBE_BUILD_CONTAINER_NAME=kube-build-<hash>
readonly
KUBE_BUILD_IMAGE_CROSS_TAG
=
cross
readonly
KUBE_BUILD_IMAGE_CROSS_TAG
=
cross
readonly
KUBE_BUILD_IMAGE_CROSS
=
"
${
KUBE_BUILD_IMAGE_REPO
}
:
${
KUBE_BUILD_IMAGE_CROSS_TAG
}
"
readonly
KUBE_BUILD_IMAGE_CROSS
=
"
${
KUBE_BUILD_IMAGE_REPO
}
:
${
KUBE_BUILD_IMAGE_CROSS_TAG
}
"
readonly
KUBE_BUILD_GOLANG_VERSION
=
1.3
readonly
KUBE_GO_PACKAGE
=
"github.com/GoogleCloudPlatform/kubernetes"
readonly
KUBE_GO_PACKAGE
=
"github.com/GoogleCloudPlatform/kubernetes"
...
@@ -225,7 +226,7 @@ function kube::build::build_image_built() {
...
@@ -225,7 +226,7 @@ function kube::build::build_image_built() {
function
kube::build::ensure_golang
()
{
function
kube::build::ensure_golang
()
{
kube::build::docker_image_exists golang 1.3
||
{
kube::build::docker_image_exists golang 1.3
||
{
[[
${
KUBE_SKIP_CONFIRMATIONS
}
=
~ ^[yY]
$
]]
||
{
[[
${
KUBE_SKIP_CONFIRMATIONS
}
=
~ ^[yY]
$
]]
||
{
echo
"You don't have a local copy of the golang docker image. This image is 450
G
B."
echo
"You don't have a local copy of the golang docker image. This image is 450
M
B."
read
-p
"Download it now? [y/n] "
-n
1
-r
read
-p
"Download it now? [y/n] "
-n
1
-r
echo
echo
[[
$REPLY
=
~ ^[yY]
$
]]
||
{
[[
$REPLY
=
~ ^[yY]
$
]]
||
{
...
@@ -234,8 +235,8 @@ function kube::build::ensure_golang() {
...
@@ -234,8 +235,8 @@ function kube::build::ensure_golang() {
}
}
}
}
echo
"+++ Pulling docker image: golang:
1.3
"
echo
"+++ Pulling docker image: golang:
${
KUBE_BUILD_GOLANG_VERSION
}
"
docker pull golang:
1.3
docker pull golang:
${
KUBE_BUILD_GOLANG_VERSION
}
}
}
}
}
...
...
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