-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache images in minikube #1881
Cache images in minikube #1881
Changes from 7 commits
201e5f9
55b4141
967ac2c
6ac177f
eb73bad
57aa3e6
e7aa059
ac65b58
3fb711c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,10 @@ gsutil cp gs://minikube-builds/${MINIKUBE_LOCATION}/testdata/busybox.yaml testda | |
gsutil cp gs://minikube-builds/${MINIKUBE_LOCATION}/testdata/pvc.yaml testdata/ | ||
gsutil cp gs://minikube-builds/${MINIKUBE_LOCATION}/testdata/busybox-mount-test.yaml testdata/ | ||
|
||
export MINIKUBE_WANTREPORTERRORPROMPT=False | ||
sudo ./out/minikube-${OS_ARCH} delete || true | ||
./out/minikube-${OS_ARCH} delete || true | ||
|
||
# Add the out/ directory to the PATH, for using new drivers. | ||
export PATH="$(pwd)/out/":$PATH | ||
|
||
|
@@ -70,17 +74,12 @@ if [ -e out/docker-machine-driver-hyperkit ]; then | |
sudo chmod u+s out/docker-machine-driver-hyperkit || true | ||
fi | ||
|
||
MINIKUBE_WANTREPORTERRORPROMPT=False sudo ./out/minikube-${OS_ARCH} delete \ | ||
|| MINIKUBE_WANTREPORTERRORPROMPT=False ./out/minikube-${OS_ARCH} delete \ | ||
|| true | ||
sudo rm -rf $HOME/.minikube || true | ||
sudo rm -rf $HOME/.kube || true | ||
|
||
# See the default image | ||
./out/minikube-${OS_ARCH} start -h | grep iso | ||
|
||
# see what driver we are using | ||
which docker-machine-driver-${VM_DRIVER} || true | ||
tree ~/.minikube || true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about "find ~/.minikube"? Not all systems have tree. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I ended up putting it on the build slaves, find is probably simpler |
||
|
||
# Allow this to fail, we'll switch on the return code below. | ||
set +e | ||
|
@@ -94,8 +93,6 @@ sudo cat $KUBECONFIG | |
MINIKUBE_WANTREPORTERRORPROMPT=False sudo ./out/minikube-${OS_ARCH} delete \ | ||
|| MINIKUBE_WANTREPORTERRORPROMPT=False ./out/minikube-${OS_ARCH} delete \ | ||
|| true | ||
sudo rm -rf $HOME/.minikube || true | ||
sudo rm -rf $HOME/.kube || true | ||
|
||
if [[ $result -eq 0 ]]; then | ||
status="success" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file perms changed on here too to 755.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed