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
57359e4f
Commit
57359e4f
authored
May 06, 2016
by
Robert Bailey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #24549 from MHBauer/osx-build-experience
improve the osx build experience
parents
8bebc448
b8987ba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
common.sh
build/common.sh
+5
-5
No files found.
build/common.sh
View file @
57359e4f
...
@@ -23,8 +23,8 @@ DOCKER_OPTS=${DOCKER_OPTS:-""}
...
@@ -23,8 +23,8 @@ DOCKER_OPTS=${DOCKER_OPTS:-""}
DOCKER_NATIVE
=
${
DOCKER_NATIVE
:-
""
}
DOCKER_NATIVE
=
${
DOCKER_NATIVE
:-
""
}
DOCKER
=(
docker
${
DOCKER_OPTS
}
)
DOCKER
=(
docker
${
DOCKER_OPTS
}
)
DOCKER_HOST
=
${
DOCKER_HOST
:-
""
}
DOCKER_HOST
=
${
DOCKER_HOST
:-
""
}
readonly
DOCKER_MACHINE_NAME
=
${
DOCKER_MACHINE_NAME
:-
"kube-dev"
}
DOCKER_MACHINE_NAME
=
${
DOCKER_MACHINE_NAME
:-
"kube-dev"
}
readonly
DOCKER_MACHINE_DRIVER
=
${
DOCKER_MACHINE_DRIVER
:-
"virtualbox"
}
readonly
DOCKER_MACHINE_DRIVER
=
${
DOCKER_MACHINE_DRIVER
:-
"virtualbox
--virtualbox-memory 4096 --virtualbox-cpu-count -1
"
}
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
cd
"
${
KUBE_ROOT
}
"
cd
"
${
KUBE_ROOT
}
"
...
@@ -184,9 +184,9 @@ function kube::build::docker_available_on_osx() {
...
@@ -184,9 +184,9 @@ function kube::build::docker_available_on_osx() {
function
kube::build::prepare_docker_machine
()
{
function
kube::build::prepare_docker_machine
()
{
kube::log::status
"docker-machine was found."
kube::log::status
"docker-machine was found."
docker-machine inspect
"
${
DOCKER_MACHINE_NAME
}
"
>
/dev/null
||
{
docker-machine inspect
"
${
DOCKER_MACHINE_NAME
}
"
&>
/dev/null
||
{
kube::log::status
"Creating a machine to build Kubernetes"
kube::log::status
"Creating a machine to build Kubernetes"
docker-machine create
--driver
"
${
DOCKER_MACHINE_DRIVER
}
"
\
docker-machine create
--driver
${
DOCKER_MACHINE_DRIVER
}
\
--engine-env
HTTP_PROXY
=
"
${
KUBERNETES_HTTP_PROXY
:-}
"
\
--engine-env
HTTP_PROXY
=
"
${
KUBERNETES_HTTP_PROXY
:-}
"
\
--engine-env
HTTPS_PROXY
=
"
${
KUBERNETES_HTTPS_PROXY
:-}
"
\
--engine-env
HTTPS_PROXY
=
"
${
KUBERNETES_HTTPS_PROXY
:-}
"
\
--engine-env
NO_PROXY
=
"
${
KUBERNETES_NO_PROXY
:-
127
.0.0.1
}
"
\
--engine-env
NO_PROXY
=
"
${
KUBERNETES_NO_PROXY
:-
127
.0.0.1
}
"
\
...
@@ -197,7 +197,7 @@ function kube::build::prepare_docker_machine() {
...
@@ -197,7 +197,7 @@ function kube::build::prepare_docker_machine() {
return
1
return
1
}
}
}
}
docker-machine start
"
${
DOCKER_MACHINE_NAME
}
"
>
/dev/null
docker-machine start
"
${
DOCKER_MACHINE_NAME
}
"
&
> /dev/null
# it takes `docker-machine env` a few seconds to work if the machine was just started
# it takes `docker-machine env` a few seconds to work if the machine was just started
while
!
docker-machine
env
${
DOCKER_MACHINE_NAME
}
&> /dev/null
;
do
while
!
docker-machine
env
${
DOCKER_MACHINE_NAME
}
&> /dev/null
;
do
sleep
1
sleep
1
...
...
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