logstash/qa/integration/services/dockerized/elasticsearch/setup.sh
Wainer dos Santos Moschetta f9d313c535 ci: dockerized elastisearch service.
This change makes the elasticsearch service used
in integration tests be installed and started in
a docker container.

Fixes #7097

Fixes #7234
2017-06-06 10:29:19 +00:00

15 lines
400 B
Bash
Executable file

#!/bin/bash
if [ -n "${ES_VERSION+1}" ]; then
echo "Elasticsearch version is $ES_VERSION"
version=$ES_VERSION
else
version=5.0.1
fi
ES_HOME=${WORKDIR}/elasticsearch
download_url=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$version.tar.gz
curl -s -o elasticsearch.tar.gz $download_url
mkdir -p $ES_HOME
tar -xzf elasticsearch.tar.gz --strip-components=1 -C $ES_HOME/.