Fixed es-docker.sh

This commit is contained in:
delvedor
2019-08-09 12:32:43 +02:00
parent dbe22f284a
commit dfc0556c4b

View File

@ -1,20 +1,5 @@
#!/bin/bash #!/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 # Images are cached locally, it may be needed
# to delete an old image and download again # to delete an old image and download again
# the latest snapshot. # the latest snapshot.
@ -33,22 +18,27 @@ if [ "$1" == "--detach" ]; then
-e "node.attr.testattr=test" \ -e "node.attr.testattr=test" \
-e "path.repo=/tmp" \ -e "path.repo=/tmp" \
-e "repositories.url.allowed_urls=http://snapshot.*" \ -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 \ -p 9200:9200 \
--detach \ --detach \
--network=elastic \ --network=elastic \
--name=elasticsearch \ --name=elasticsearch \
docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT docker.elastic.co/elasticsearch/elasticsearch:5.6.16
else else
exec docker run \ exec docker run \
--rm \ --rm \
-e "node.attr.testattr=test" \ -e "node.attr.testattr=test" \
-e "path.repo=/tmp" \ -e "path.repo=/tmp" \
-e "repositories.url.allowed_urls=http://snapshot.*" \ -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 \ -p 9200:9200 \
--network=elastic \ --network=elastic \
--name=elasticsearch \ --name=elasticsearch \
docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT docker.elastic.co/elasticsearch/elasticsearch:5.6.16
fi fi
>>>>>>> 34e440b9... Use Jenkins pipelines (#937)