Last active
January 29, 2016 10:19
-
-
Save sttts/b9c03604be3da01b8d60 to your computer and use it in GitHub Desktop.
Simulating enough of boot2docker with docker-machine to build Kubernetes 1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case "$1" in | |
status) | |
docker-machine status boot2docker | sed 's/Running/running/' | |
exit ${PIPESTATUS[0]} | |
;; | |
shellinit) | |
docker-machine env boot2docker | egrep -v '^#' | |
exit ${PIPESTATUS[0]} | |
;; | |
ip) | |
shift | |
exec docker-machine ip boot2docker | |
;; | |
ssh) | |
shift | |
exec docker-machine ssh boot2docker "$@" | |
;; | |
*) | |
exit 1 | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment