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
132c4271
Commit
132c4271
authored
Feb 18, 2016
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add linux fastbuild option to ./build/release.sh
parent
4d59d700
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
26 deletions
+45
-26
Makefile
Makefile
+1
-1
common.sh
build/common.sh
+5
-0
golang.sh
hack/lib/golang.sh
+39
-25
No files found.
Makefile
View file @
132c4271
...
...
@@ -141,6 +141,6 @@ release:
# Example:
# make release-skip-tests
release-skip-tests quick-release
:
KUBE_RELEASE_RUN_TESTS
=
n build/release.sh
KUBE_RELEASE_RUN_TESTS
=
n
KUBE_FASTBUILD
=
true
build/release.sh
.PHONY
:
release-skip-tests quick-release
build/common.sh
View file @
132c4271
...
...
@@ -580,6 +580,11 @@ function kube::build::run_build_command() {
docker_run_opts+=(-e "
KUBERNETES_CONTRIB
=
${
KUBERNETES_CONTRIB
}
")
fi
docker_run_opts+=(
--env "
KUBE_FASTBUILD
=
${
KUBE_FASTBUILD
:-
false
}
"
--env "
KUBE_BUILDER_OS
=
${
OSTYPE
:-
notdetected
}
"
)
# If we have stdin we can run interactive. This allows things like 'shell.sh'
# to work. However, if we run this way and don't have stdin, then it ends up
# running in a daemon-ish mode. So if we don't have a stdin, we explicitly
...
...
hack/lib/golang.sh
View file @
132c4271
...
...
@@ -47,11 +47,45 @@ kube::golang::server_targets() {
readonly
KUBE_SERVER_TARGETS
=(
$(
kube::golang::server_targets
)
)
readonly
KUBE_SERVER_BINARIES
=(
"
${
KUBE_SERVER_TARGETS
[@]##*/
}
"
)
# The server platform we are building on.
readonly
KUBE_SERVER_PLATFORMS
=(
linux/amd64
linux/arm
)
if
[[
"
${
KUBE_FASTBUILD
:-}
"
==
"true"
]]
;
then
readonly
KUBE_SERVER_PLATFORMS
=(
linux/amd64
)
readonly
KUBE_TEST_PLATFORMS
=(
linux/amd64
)
if
[[
"
${
KUBE_BUILDER_OS
:-}
"
==
"darwin"
*
]]
;
then
readonly
KUBE_CLIENT_PLATFORMS
=(
darwin/amd64
linux/amd64
)
else
readonly
KUBE_CLIENT_PLATFORMS
=(
linux/amd64
)
fi
else
# The server platform we are building on.
readonly
KUBE_SERVER_PLATFORMS
=(
linux/amd64
linux/arm
)
# If we update this we should also update the set of golang compilers we build
# in 'build/build-image/cross/Dockerfile'. However, it's only a bit faster since go 1.5, not mandatory
readonly
KUBE_CLIENT_PLATFORMS
=(
linux/amd64
linux/386
linux/arm
darwin/amd64
darwin/386
windows/amd64
windows/386
)
# Which platforms we should compile test targets for. Not all client platforms need these tests
readonly
KUBE_TEST_PLATFORMS
=(
linux/amd64
darwin/amd64
windows/amd64
linux/arm
)
fi
# The set of client targets that we are building for all platforms
readonly
KUBE_CLIENT_TARGETS
=(
...
...
@@ -60,18 +94,6 @@ readonly KUBE_CLIENT_TARGETS=(
readonly
KUBE_CLIENT_BINARIES
=(
"
${
KUBE_CLIENT_TARGETS
[@]##*/
}
"
)
readonly
KUBE_CLIENT_BINARIES_WIN
=(
"
${
KUBE_CLIENT_BINARIES
[@]/%/.exe
}
"
)
# If we update this we should also update the set of golang compilers we build
# in 'build/build-image/cross/Dockerfile'. However, it's only a bit faster since go 1.5, not mandatory
readonly
KUBE_CLIENT_PLATFORMS
=(
linux/amd64
linux/386
linux/arm
darwin/amd64
darwin/386
windows/amd64
windows/386
)
# The set of test targets that we are building for all platforms
kube::golang::test_targets
()
{
local
targets
=(
...
...
@@ -108,14 +130,6 @@ readonly KUBE_TEST_PORTABLE=(
hack/lib
)
# Which platforms we should compile test targets for. Not all client platforms need these tests
readonly
KUBE_TEST_PLATFORMS
=(
linux/amd64
darwin/amd64
windows/amd64
linux/arm
)
# Gigabytes desired for parallel platform builds. 11 is fairly
# arbitrary, but is a reasonable splitting point for 2015
# laptops-versus-not.
...
...
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