Last active
March 28, 2016 03:36
-
-
Save natemurthy/3c4c6005771e0c1831d4 to your computer and use it in GitHub Desktop.
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
case `uname` in | |
"Linux") | |
export DOCKER_HOST="localhost" | |
#scala -e "println(sys.env(\"DOCKER_HOST\"))" | |
;; | |
"Darwin") | |
if hash docker-machine 2>/dev/null; then | |
export DOCKER_HOST=`docker-machine ip default` | |
#scala -e "println(sys.env(\"DOCKER_HOST\"))" | |
else | |
echo "docker-machine needs to be installed" | |
exit 1 | |
fi | |
;; | |
*) echo "Unsupported OS"; exit 1 ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment