Skip to content

Commit

Permalink
use elastic network
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Mar 24, 2020
1 parent 557532c commit 4d35737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run-elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ mkdir -p /usr/share/elasticsearch/plugins/
mkdir -p /usr/share/elasticsearch/config/

docker run --rm \
--network=elastic \
--entrypoint=tar \
docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} \
-c -C /usr/share/elasticsearch/ config | tar x -C /usr/share/elasticsearch/


if [[ ! -z $PLUGINS ]]; then
docker run --rm \
--network=elastic \
-v /usr/share/elasticsearch/plugins/:/usr/share/elasticsearch/plugins/ \
-v /usr/share/elasticsearch/config/:/usr/share/elasticsearch/config/ \
--entrypoint=/usr/share/elasticsearch/bin/elasticsearch-plugin \
Expand Down

0 comments on commit 4d35737

Please sign in to comment.