Skip to content

Commit

Permalink
ci(gitlab): add args to elasticsearch service (#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil authored Apr 15, 2020
1 parent 24ac860 commit da52efd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitlab-ci/stages/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit da52efd

Please sign in to comment.