Fixed es-docker.sh
This commit is contained in:
@ -1,20 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
<<<<<<< HEAD
|
||||
exec docker run \
|
||||
--rm \
|
||||
-e "node.attr.testattr=test" \
|
||||
-e "path.repo=/tmp" \
|
||||
-e "repositories.url.allowed_urls=http://snapshot.*" \
|
||||
-e "discovery.zen.ping.unicast.hosts=elasticsearch" \
|
||||
-e "xpack.security.enabled=false" \
|
||||
-e "xpack.monitoring.enabled=false" \
|
||||
-e "xpack.ml.enabled=false" \
|
||||
-p 9200:9200 \
|
||||
--network=elastic \
|
||||
--name=elasticsearch \
|
||||
docker.elastic.co/elasticsearch/elasticsearch:5.6.16
|
||||
=======
|
||||
# Images are cached locally, it may be needed
|
||||
# to delete an old image and download again
|
||||
# the latest snapshot.
|
||||
@ -33,22 +18,27 @@ if [ "$1" == "--detach" ]; then
|
||||
-e "node.attr.testattr=test" \
|
||||
-e "path.repo=/tmp" \
|
||||
-e "repositories.url.allowed_urls=http://snapshot.*" \
|
||||
-e "discovery.type=single-node" \
|
||||
-e "discovery.zen.ping.unicast.hosts=elasticsearch" \
|
||||
-e "xpack.security.enabled=false" \
|
||||
-e "xpack.monitoring.enabled=false" \
|
||||
-e "xpack.ml.enabled=false" \
|
||||
-p 9200:9200 \
|
||||
--detach \
|
||||
--network=elastic \
|
||||
--name=elasticsearch \
|
||||
docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT
|
||||
docker.elastic.co/elasticsearch/elasticsearch:5.6.16
|
||||
else
|
||||
exec docker run \
|
||||
--rm \
|
||||
-e "node.attr.testattr=test" \
|
||||
-e "path.repo=/tmp" \
|
||||
-e "repositories.url.allowed_urls=http://snapshot.*" \
|
||||
-e "discovery.type=single-node" \
|
||||
-e "discovery.zen.ping.unicast.hosts=elasticsearch" \
|
||||
-e "xpack.security.enabled=false" \
|
||||
-e "xpack.monitoring.enabled=false" \
|
||||
-e "xpack.ml.enabled=false" \
|
||||
-p 9200:9200 \
|
||||
--network=elastic \
|
||||
--name=elasticsearch \
|
||||
docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT
|
||||
docker.elastic.co/elasticsearch/elasticsearch:5.6.16
|
||||
fi
|
||||
>>>>>>> 34e440b9... Use Jenkins pipelines (#937)
|
||||
|
||||
Reference in New Issue
Block a user