mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
This change makes the elasticsearch service used in integration tests be installed and started in a docker container. Fixes #7097 Fixes #7234
15 lines
400 B
Bash
Executable file
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/.
|