Skip to content

Commit 9313a08

Browse files
committed
Updated run-test script
1 parent 77f4cb6 commit 9313a08

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.ci/run-tests

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,20 @@ if [[ $TEST_SUITE != "xpack" ]]; then
3838
elasticsearch_url="http://${NODE_NAME}:9200"
3939
fi
4040

41-
ELASTICSEARCH_VERSION="${elasticsearch_image}:${ELASTICSEARCH_VERSION}" \
42-
NODE_NAME="${NODE_NAME}" \
43-
NETWORK_NAME="esnet" \
44-
DETACH=true \
45-
SSL_CERT="${repo}${testnodecrt}" \
46-
SSL_KEY="${repo}${testnodekey}" \
47-
SSL_CA="${repo}${cacrt}" \
48-
bash .ci/run-elasticsearch.sh
41+
docker run \
42+
--rm \
43+
--env "node.attr.testattr=test" \
44+
--env "path.repo=/tmp" \
45+
--env "repositories.url.allowed_urls=http://snapshot.*" \
46+
--env "discovery.zen.ping.unicast.hosts=${NODE_NAME}" \
47+
--env "xpack.security.enabled=false" \
48+
--env "xpack.monitoring.enabled=false" \
49+
--env "xpack.ml.enabled=false" \
50+
--env ES_JAVA_OPTS="-Xms1g -Xmx1g" \
51+
--network=esnet \
52+
--name=$NODE_NAME \
53+
--detach \
54+
docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}
4955

5056
docker run \
5157
--network=esnet \

0 commit comments

Comments
 (0)