Method: Gitlab::QA::Component::Elasticsearch#start
- Defined in:
- lib/gitlab/qa/component/elasticsearch.rb
#start ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/gitlab/qa/component/elasticsearch.rb', line 17 def start @docker.run(image: image, tag: tag) do |command| command << "-d" command << "--name #{name}" command << "--net #{network}" command << "--publish 9200:9200" command << "--publish 9300:9300" command.env("discovery.type", "single-node") command.env("ES_JAVA_OPTS", "-Xms512m -Xmx512m") command.env("xpack.security.enabled", "false") end end |