Sha256: d364a50bb81ee8ea78826e8c6d7277c183c0f5a76a967d75f0ea4b2574bfdbe8

Contents?: true

Size: 739 Bytes

Versions: 26

Compression:

Stored size: 739 Bytes

Contents

module Gitlab
  module QA
    module Component
      class Elasticsearch < Base
        DOCKER_IMAGE = 'docker.elastic.co/elasticsearch/elasticsearch'.freeze

        def name
          @name ||= "elastic68"
        end

        def tag
          Runtime::Env.elastic_version
        end

        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")
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
gitlab-qa-7.27.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.26.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.25.1 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.25.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.24.6 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.24.5 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.24.4 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.24.3 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.24.2 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.24.1 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.24.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.23.1 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.23.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.22.1 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.22.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.21.1 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.21.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.20.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.19.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-7.18.1 lib/gitlab/qa/component/elasticsearch.rb