Skip to content

Commit

Permalink
copy config out
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Mar 24, 2020
1 parent 16d2e18 commit c6a22ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run-elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ fi
docker network create elastic

mkdir -p /usr/share/elasticsearch/plugins/
mkdir -p /usr/share/elasticsearch/config/

docker run yourimage tar -c -C /usr/share/elasticsearch/ config | tar x -C /usr/share/elasticsearch/


if [[ ! -z $PLUGINS ]]; then
docker run --rm \
-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 \
docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} \
install ${PLUGINS/\\n/ } --batch
Expand Down

0 comments on commit c6a22ae

Please sign in to comment.