Skip to content

Instantly share code, notes, and snippets.

@natemurthy
Last active March 28, 2016 03:36
Show Gist options
  • Save natemurthy/3c4c6005771e0c1831d4 to your computer and use it in GitHub Desktop.
Save natemurthy/3c4c6005771e0c1831d4 to your computer and use it in GitHub Desktop.
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