From da52efde2375cc8316c3e595546f52bef480fa9e Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Wed, 15 Apr 2020 12:18:23 +0200 Subject: [PATCH] ci(gitlab): add args to elasticsearch service (#2618) --- .gitlab-ci/stages/quality.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/stages/quality.yml b/.gitlab-ci/stages/quality.yml index 90e92f91fe..30cc56d6cd 100644 --- a/.gitlab-ci/stages/quality.yml +++ b/.gitlab-ci/stages/quality.yml @@ -86,9 +86,12 @@ Test @cdtn/api: services: - name: $CI_REGISTRY_IMAGE/elasticsearch:$CI_COMMIT_SHA alias: elasticsearch + command: [ "bin/elasticsearch", "-Expack.security.enabled=false", "-Ediscovery.type=single-node" ] variables: GIT_STRATEGY: none - ELASTICSEARCH_URL: http://elasticsearch:$ELASTICSEARCH_PORT + ELASTICSEARCH_URL: http://elasticsearch:$ELASTICSEARCH_PORT + # HACK(douglasduteil): make ES not that memory hungry + ES_JAVA_OPTS: "-Xms256m -Xmx256m" script: # NOTE(douglasduteil): the elasticsearch health check must be last # As we block the job waiting for elasticsearch to be up.