Mercurial > hg > config
changeset 782:f643cb5e020a
docker-machine is so last month
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Wed, 24 Aug 2016 14:02:22 -0700 |
parents | 6beceb826eb0 |
children | d564f7ad8294 |
files | bin/docker_elasticsearch.sh |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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