Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Rook
Commits
6cede457
Unverified
Commit
6cede457
authored
4 years ago
by
Sébastien Han
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #6710 from synarete/minikube-script-fixes
Minikube script fixes
parents
c953de53
0786b727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/minikube.sh
+6
-2
tests/scripts/minikube.sh
with
6 additions
and
2 deletions
+6
-2
tests/scripts/minikube.sh
+
6
-
2
View file @
6cede457
...
...
@@ -20,7 +20,11 @@ function wait_for_ssh() {
function
copy_image_to_cluster
()
{
local
build_image
=
$1
local
final_image
=
$2
docker save
"
${
build_image
}
"
|
(
eval
"
$(
minikube docker-env
--shell
bash
)
"
&&
docker load
&&
docker tag
"
${
build_image
}
"
"
${
final_image
}
"
)
local
docker_env_tag
=
"
${
DOCKERCMD
}
-env"
${
DOCKERCMD
}
save
"
${
build_image
}
"
|
\
(
eval
"
$(
minikube
${
docker_env_tag
}
--shell
bash
)
"
&&
\
${
DOCKERCMD
}
load
&&
\
${
DOCKERCMD
}
tag
"
${
build_image
}
"
"
${
final_image
}
"
)
}
function
copy_images
()
{
...
...
@@ -56,7 +60,7 @@ function copy_images() {
MEMORY
=
${
MEMORY
:-
"3000"
}
# use vda1 instead of sda1 when running with the libvirt driver
VM_DRIVER
=
$(
minikube config get
vm-
driver 2>/dev/null
||
echo
"virtualbox"
)
VM_DRIVER
=
$(
minikube config get driver 2>/dev/null
||
echo
"virtualbox"
)
if
[[
"
$VM_DRIVER
"
==
"kvm2"
]]
;
then
DISK
=
"vda1"
else
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help