Sha256: 7a05a6a2219f244b2d8f40f92a29e02556d43a570732685b40440e3bd173a65e

Contents?: true

Size: 822 Bytes

Versions: 88

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true

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

        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")
            command.env("xpack.security.enabled", "false")
          end
        end
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
gitlab-qa-14.21.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.20.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.19.2 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.19.1 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.19.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.18.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.17.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.16.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.15.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.14.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.13.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.12.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.11.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.9.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.8.1 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.8.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.7.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.6.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.5.0 lib/gitlab/qa/component/elasticsearch.rb
gitlab-qa-14.4.0 lib/gitlab/qa/component/elasticsearch.rb