# HG changeset patch # User Jeff Hammel # Date 1472072542 25200 # Node ID f643cb5e020a668d62d84df349c2b177585b7e10 # Parent 6beceb826eb021253369db0466e032fa08f4b7d7 docker-machine is so last month diff -r 6beceb826eb0 -r f643cb5e020a bin/docker_elasticsearch.sh --- a/bin/docker_elasticsearch.sh Tue Aug 23 15:30:42 2016 -0700 +++ b/bin/docker_elasticsearch.sh Wed Aug 24 14:02:22 2016 -0700 @@ -1,8 +1,5 @@ #!/bin/bash - -export MACHINE=default -eval "$(docker-machine env default)" export CIDFILE=$(mktemp -u) docker run -P --cidfile ${CIDFILE} elasticsearch & sleep 10 @@ -14,9 +11,11 @@ } trap 'script_shutdown' INT -export DOCKER_IP=$(docker-machine ip default) -export CONTAINER_PORT=$(docker port `cat ${CIDFILE}` | grep 9200 | sed 's/.*://') -export ELASTICSEARCH_URL="http://${DOCKER_IP}:${CONTAINER_PORT}/" -open ${ELASTICSEARCH_URL} + +# TODO +# export DOCKER_IP=$(docker-machine ip default) +# export CONTAINER_PORT=$(docker port `cat ${CIDFILE}` | grep 9200 | sed 's/.*://') +# export ELASTICSEARCH_URL="http://${DOCKER_IP}:${CONTAINER_PORT}/" +# open ${ELASTICSEARCH_URL} wait