elastic-enterprise-search 8.8.0 → 8.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 031cec00d19f25b476ac32ea1074c5f8d1a79ee09e631ee9dc9097e3b53dbf59
4
- data.tar.gz: 459bb77b77b89ef66a781adeb1aed5289d21b0399bd0e5bfa5c7405e1a3c6e5f
3
+ metadata.gz: e1edee1a341d229766cc56217bdc48daba826c38285fac78da19f98c4499f007
4
+ data.tar.gz: e59f9320edc8874b05b7a42888bc6c8817c4192a9f266bdf5584674c686cb518
5
5
  SHA512:
6
- metadata.gz: 61e665be5a259b3a1bcafe382c4b54938c3d1f04d458df6037a593b32ff07a18e9d6a2d197cd55467e4d2c28c5cd7685754bba46e8b0be3a84b2827574b568bb
7
- data.tar.gz: 6029c93e184f0f0a5e96d02b251b1d9bf40322bad0e677cfaccb8b9475ea246db9e96bf4ccf2c7a6e652bc39aebbc8595cae63c9b243af342d66ec4955a8cdbf
6
+ metadata.gz: d1a70bed65232c5281f1439cfa460cdbd8c10414c73e522e0570d5a900916b4c3685b578256cbb0929b1f2aae574a14e23815b994918f37eba72ede0030c1639
7
+ data.tar.gz: e82c1ce74df9f238b3a978291bdf8736d73fc71fa20c028bba039d33b75b01e4c36db676e8d2a5c9177e3e2c0e2f8fe3e73c6b4a72533e0d9c21d49ff4e2f101
@@ -4,13 +4,14 @@ steps:
4
4
  provider: "gcp"
5
5
  env:
6
6
  RUBY_VERSION: "{{ matrix.ruby }}"
7
- STACK_VERSION: 8.8-SNAPSHOT
7
+ STACK_VERSION: 8.18.0-SNAPSHOT
8
8
  matrix:
9
9
  setup:
10
10
  ruby:
11
+ - "3.4"
12
+ - "3.3"
11
13
  - "3.2"
12
14
  - "3.1"
13
- - "3.0"
14
15
  command: ./.buildkite/run-tests.sh
15
16
  artifact_paths: "tmp/*"
16
17
  - wait: ~
@@ -29,8 +29,12 @@ set -euo pipefail
29
29
  echo -e "\033[34;1mINFO:\033[0m Take down node if called twice with the same arguments (DETACH=true) or on seperate terminals \033[0m"
30
30
  cleanup_node $es_node_name
31
31
 
32
- # Set vm.max_map_count kernel setting to 262144
33
- sudo sysctl -w vm.max_map_count=262144
32
+ BUILDKITE=${BUILDKITE-false}
33
+
34
+ # Set vm.max_map_count kernel setting to 262144 if we're in CI
35
+ if [[ "$BUILDKITE" == "true" ]]; then
36
+ sudo sysctl -w vm.max_map_count=262144
37
+ fi
34
38
 
35
39
  master_node_name=${es_node_name}
36
40
  cluster_name=${moniker}${suffix}
@@ -11,9 +11,6 @@ script_path=$(dirname $(realpath -s $0))
11
11
  source $script_path/functions/imports.sh
12
12
  set -euo pipefail
13
13
 
14
- echo "--- Create the elastic network"
15
- docker network create elastic
16
-
17
14
  echo "--- :docker: :elasticsearch: Starting Elasticsearch"
18
15
  DETACH=true bash $script_path/run-elasticsearch.sh
19
16
 
data/.ci/make.sh CHANGED
@@ -55,15 +55,6 @@ case $CMD in
55
55
  echo -e "\033[32;1mdone.\033[0m"
56
56
  exit 0
57
57
  ;;
58
- assemble)
59
- if [ -v $VERSION ]; then
60
- echo -e "\033[31;1mTARGET: assemble -> missing version parameter\033[0m"
61
- exit 1
62
- fi
63
- echo -e "\033[36;1mTARGET: assemble artefact $VERSION\033[0m"
64
- TASK=assemble
65
- TASK_ARGS=("$VERSION" "$output_folder")
66
- ;;
67
58
  codegen)
68
59
  if [ -v $VERSION ]; then
69
60
  echo -e "\033[31;1mTARGET: codegen -> missing version parameter\033[0m"
@@ -112,11 +103,7 @@ esac
112
103
 
113
104
  echo -e "\033[34;1mINFO: building $product container\033[0m"
114
105
 
115
- docker build --file .ci/Dockerfile --tag ${product} \
116
- --build-arg BUILDER_UID="$(id -u)" \
117
- --build-arg USER_ID="$(id -u)" \
118
- --build-arg GROUP_ID="$(id -g)" .
119
-
106
+ docker build --file .buildkite/Dockerfile --tag ${product}
120
107
 
121
108
  # ------------------------------------------------------- #
122
109
  # Run the Container
@@ -142,15 +129,6 @@ docker run \
142
129
  # Post Command tasks & checks
143
130
  # ------------------------------------------------------- #
144
131
 
145
- if [[ "$CMD" == "assemble" ]]; then
146
- if compgen -G ".ci/output/*" > /dev/null; then
147
- echo -e "\033[32;1mTARGET: successfully assembled client v$VERSION\033[0m"
148
- else
149
- echo -e "\033[31;1mTARGET: assemble failed, empty workspace!\033[0m"
150
- exit 1
151
- fi
152
- fi
153
-
154
132
  if [[ "$CMD" == "codegen" ]]; then
155
133
  echo "TODO"
156
134
  fi
@@ -4,10 +4,10 @@ jobs:
4
4
  build:
5
5
  runs-on: ubuntu-latest
6
6
  steps:
7
- - uses: actions/checkout@v2
7
+ - uses: actions/checkout@v4
8
8
  - uses: ruby/setup-ruby@v1
9
9
  with:
10
- ruby-version: 3
10
+ ruby-version: '3.4'
11
11
  - name: Check license headers
12
12
  run: |
13
13
  ruby ./.github/check_license_headers.rb
@@ -5,10 +5,10 @@ jobs:
5
5
  rubocop:
6
6
  runs-on: ubuntu-latest
7
7
  steps:
8
- - uses: actions/checkout@v2
8
+ - uses: actions/checkout@v4
9
9
  - uses: ruby/setup-ruby@v1
10
10
  with:
11
- ruby-version: 2.7
11
+ ruby-version: 3
12
12
  - name: Run Rubocop
13
13
  run: |
14
14
  gem install rubocop
@@ -1,3 +1,4 @@
1
+ ---
1
2
  name: main
2
3
  on: [push, pull_request]
3
4
 
@@ -7,10 +8,10 @@ jobs:
7
8
  ENDPOINT: http://localhost:8080
8
9
  strategy:
9
10
  matrix:
10
- ruby: [ '3.0', '3.1', '3.2' ]
11
+ ruby: ['3.1', '3.2', '3.3', '3.4']
11
12
  runs-on: ubuntu-latest
12
13
  steps:
13
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v4
14
15
  - uses: ruby/setup-ruby@v1
15
16
  with:
16
17
  ruby-version: ${{ matrix.ruby }}
@@ -27,10 +28,10 @@ jobs:
27
28
  strategy:
28
29
  fail-fast: false
29
30
  matrix:
30
- ruby: [ jruby-9.3, jruby-9.4 ]
31
+ ruby: ['jruby-9.3', 'jruby-9.4']
31
32
  runs-on: ubuntu-latest
32
33
  steps:
33
- - uses: actions/checkout@v2
34
+ - uses: actions/checkout@v4
34
35
  - uses: ruby/setup-ruby@v1
35
36
  with:
36
37
  ruby-version: ${{ matrix.ruby }}
data/README.md CHANGED
@@ -1,8 +1,19 @@
1
1
  # Elastic Enterprise Search Client
2
2
 
3
- ![build](https://github.com/elastic/enterprise-search-ruby/workflows/main/badge.svg)
4
3
  ![rubocop](https://github.com/elastic/enterprise-search-ruby/workflows/rubocop/badge.svg)
5
4
  [![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop-hq/rubocop)
5
+ ![build](https://github.com/elastic/enterprise-search-ruby/workflows/main/badge.svg)
6
+ [![Build status](https://badge.buildkite.com/a6c44f2af741c866381fb3c845e8d4b0e9b5c5883ef84ac30e.svg)](https://buildkite.com/elastic/enterprise-search-ruby)
7
+
8
+ > [!WARNING] **Enterprise Search will be discontinued in 9.0.**
9
+
10
+ > Starting with Elastic version 9.0, the standalone Enterprise Search products, will no longer be included in our offering. They remain supported in their current form in version 8.x and will only receive security upgrades and fixes. Enterprise Search clients will continue to be supported in their current form throughout 8.x versions, according to our EOL policy: https://www.elastic.co/support/eol
11
+ > We recommend transitioning to our actively developed Elastic Stack (https://www.elastic.co/elastic-stack) tools for your search use cases. However, if you're still using any Enterprise Search products, we recommend using the latest stable release of the clients.
12
+
13
+ > Here are some useful links with more information:
14
+ > * Enterprise Search FAQ: https://www.elastic.co/resources/enterprise-search/enterprise-search-faq
15
+ > * Migrating to 9.x from Enterprise Search 8.x versions: https://www.elastic.co/guide/en/enterprise-search/current/upgrading-to-9-x.html
16
+
6
17
 
7
18
  Official Ruby API client for [Elastic Enterprise Search](https://www.elastic.co/enterprise-search). Use this gem to integrate App Search and Workplace Search into your Ruby code.
8
19
 
data/catalog-info.yaml ADDED
@@ -0,0 +1,19 @@
1
+ apiVersion: backstage.io/v1alpha1
2
+ kind: Resource
3
+ metadata:
4
+ name: buildkite-pipeline-enterprise-search-ruby
5
+ spec:
6
+ implementation:
7
+ apiVersion: buildkite.elastic.dev/v1
8
+ kind: Pipeline
9
+ metadata:
10
+ description: Enterprise Search Ruby Client
11
+ name: enterprise-search-ruby
12
+ spec:
13
+ repository: elastic/enterprise-search-ruby
14
+ teams:
15
+ devtools-team: {}
16
+ everyone:
17
+ access_level: READ_ONLY
18
+ owner: group:devtools-team
19
+ type: buildkite-pipeline
@@ -35,7 +35,7 @@ client.create_engine(body: body)
35
35
  # Add a source engine to a meta engine:
36
36
  client.add_meta_engine_source(meta_engine_name, source_engines: ['engine1', 'engine2'])
37
37
 
38
- # Remove a source enginge from a meta engine:
38
+ # Remove a source engine from a meta engine:
39
39
  client.delete_meta_engine_source(meta_engine_name, source_engines: ['engine1', 'engine2'])
40
40
  ----------------------------
41
41
 
@@ -72,7 +72,9 @@ client.put_documents(engine_name, documents: [{id: document_id, key: value}])
72
72
  ----------------------------
73
73
  # Single Search
74
74
  query = {
75
- query: 'luigi'
75
+ body: {
76
+ query: 'luigi'
77
+ }
76
78
  }
77
79
 
78
80
  client.search(engine_name, query)
@@ -0,0 +1,9 @@
1
+ [[release_notes_88]]
2
+ === 8.8 Release notes
3
+
4
+ [discrete]
5
+ [[release_notes_880]]
6
+ === 8.8.0 Release notes
7
+
8
+ - Tested versions of Ruby for 8.8.0: Ruby (MRI) 3.0, 3.1 and 3.2, JRuby 9.3 and JRuby 9.4.
9
+ - Updated for compatibility with Elastic Enterprise Search 8.8's API.
@@ -0,0 +1,10 @@
1
+ [[release_notes_89]]
2
+ === 8.9 Release notes
3
+
4
+ [discrete]
5
+ [[release_notes_890]]
6
+ === 8.9.0 Release notes
7
+
8
+ - Refactored User-Agent code, it is now set up on initializing the client instead of every request.
9
+ - Tested versions of Ruby for 8.9.0: Ruby (MRI) 3.0, 3.1 and 3.2, JRuby 9.3 and JRuby 9.4.
10
+ - Updated for compatibility with Elastic Enterprise Search 8.9's API.
@@ -4,6 +4,8 @@
4
4
  [discrete]
5
5
  === 8.x
6
6
 
7
+ * <<release_notes_89, 8.9.0 Release Notes>>
8
+ * <<release_notes_88, 8.8.0 Release Notes>>
7
9
  * <<release_notes_87, 8.7.0 Release Notes>>
8
10
  * <<release_notes_86, 8.6.0 Release Notes>>
9
11
  * <<release_notes_85, 8.5.0 Release Notes>>
@@ -25,6 +27,8 @@
25
27
  * <<release_notes_711, 7.11.0 Release Notes>>
26
28
  * <<release_notes_710, 7.10.0.beta.1 Release Notes>>
27
29
 
30
+ include::89.asciidoc[]
31
+ include::88.asciidoc[]
28
32
  include::87.asciidoc[]
29
33
  include::86.asciidoc[]
30
34
  include::85.asciidoc[]
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.name = 'elastic-enterprise-search'
27
27
  s.version = Elastic::EnterpriseSearch::VERSION
28
28
  s.authors = ['Fernando Briano']
29
- s.email = ['support@elastic.co']
29
+ s.email = ['clients-team@elastic.co']
30
30
  s.homepage = 'https://github.com/elastic/enterprise-search-ruby'
31
31
  s.summary = 'Official API client for Elastic Enterprise Search'
32
32
  s.description = <<~DESCRIPTION
@@ -53,13 +53,26 @@ Gem::Specification.new do |s|
53
53
  s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION)
54
54
  s.add_development_dependency 'rspec', '~> 3.9.0'
55
55
  s.add_development_dependency 'rspec_junit_formatter'
56
- s.add_development_dependency 'rubocop', '~> 1'
56
+ s.add_development_dependency 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION) &&
57
+ Gem::Version.new(JRUBY_VERSION) < Gem::Version.new('9.4')
57
58
  s.add_development_dependency 'vcr'
58
- s.add_development_dependency 'webmock'
59
+ s.add_development_dependency 'webmock', '>= 3.23.1'
59
60
  # Adapters
60
61
  s.add_development_dependency 'faraday-httpclient'
61
62
  s.add_development_dependency 'faraday-net_http_persistent'
62
63
  s.add_development_dependency 'faraday-patron' unless defined? JRUBY_VERSION
63
64
  s.add_development_dependency 'faraday-typhoeus'
65
+
66
+ s.post_install_message = <<~MESSAGE
67
+
68
+ Warning: Starting with Elastic version 9.0, the standalone Enterprise Search products, will no longer be included in our offering. They remain supported in their current form in version 8.x and will only receive security upgrades and fixes.
69
+ Enterprise Search clients will continue to be supported in their current form throughout 8.x versions, according to our EOL policy: https://www.elastic.co/support/eol
70
+ We recommend transitioning to our actively developed Elastic Stack (https://www.elastic.co/elastic-stack) tools for your search use cases. However, if you're still using any Enterprise Search products, we recommend using the latest stable release of the clients.
71
+
72
+ Here are some useful links with more information:
73
+ * Enterprise Search FAQ: https://www.elastic.co/resources/enterprise-search/enterprise-search-faq
74
+ * Migrating to 9.x from Enterprise Search 8.x versions: https://www.elastic.co/guide/en/enterprise-search/current/upgrading-to-9-x.html
75
+
76
+ MESSAGE
64
77
  end
65
78
  # rubocop:enable Metrics/BlockLength
@@ -77,7 +77,8 @@ module Elastic
77
77
  request_timeout: overall_timeout,
78
78
  adapter: adapter,
79
79
  transport_options: {
80
- request: { open_timeout: open_timeout }
80
+ request: { open_timeout: open_timeout },
81
+ headers: { user_agent: user_agent }
81
82
  },
82
83
  enable_meta_header: @options[:enable_meta_header] || true,
83
84
  trace: trace,
@@ -128,6 +129,19 @@ module Elastic
128
129
 
129
130
  @options[:host]
130
131
  end
132
+
133
+ private
134
+
135
+ def user_agent
136
+ ua = "#{CLIENT_NAME}/#{CLIENT_VERSION}"
137
+ meta = ["RUBY_VERSION: #{RUBY_VERSION}"]
138
+ if RbConfig::CONFIG && RbConfig::CONFIG['host_os']
139
+ meta << "#{RbConfig::CONFIG['host_os'].split('_').first[/[a-z]+/i].downcase} " \
140
+ "#{RbConfig::CONFIG['target_cpu']}"
141
+ end
142
+ meta << "elastic-transport: #{Elastic::Transport::VERSION}"
143
+ "#{ua} (#{meta.join('; ')})"
144
+ end
131
145
  end
132
146
  end
133
147
  end
@@ -48,7 +48,7 @@ module Elastic
48
48
 
49
49
  # Construct and send a request to the API.
50
50
  def request(method, path, params = {}, body = {}, headers = {})
51
- meta_headers = { authorization: decide_authorization(params), user_agent: request_user_agent }
51
+ meta_headers = { authorization: decide_authorization(params) }
52
52
  headers = if !headers.is_a?(Hash)
53
53
  meta_headers
54
54
  else
@@ -79,17 +79,6 @@ module Elastic
79
79
 
80
80
  private
81
81
 
82
- def request_user_agent
83
- ua = "#{CLIENT_NAME}/#{CLIENT_VERSION}"
84
- meta = ["RUBY_VERSION: #{RUBY_VERSION}"]
85
- if RbConfig::CONFIG && RbConfig::CONFIG['host_os']
86
- meta << "#{RbConfig::CONFIG['host_os'].split('_').first[/[a-z]+/i].downcase} " \
87
- "#{RbConfig::CONFIG['target_cpu']}"
88
- end
89
- meta << "elastic-transport: #{Elastic::Transport::VERSION}"
90
- "#{ua} (#{meta.join('; ')})"
91
- end
92
-
93
82
  def decide_authorization(params)
94
83
  if params[:grant_type] == 'authorization_code'
95
84
  "Bearer #{params[:code]}"
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Elastic
21
21
  module EnterpriseSearch
22
- VERSION = '8.8.0'
22
+ VERSION = '8.18.0'
23
23
  end
24
24
  end
@@ -104,5 +104,16 @@ describe Elastic::EnterpriseSearch::Client do
104
104
  end
105
105
  end
106
106
 
107
+ context 'user-agent' do
108
+ context 'default' do
109
+ let(:transport) { Elastic::EnterpriseSearch::Client.new.instance_variable_get('@transport') }
110
+ let(:subject) { transport.transport.connections.first.connection.headers }
111
+
112
+ it 'includes the user-agent in transport' do
113
+ expect(subject['user-agent']).to match("elastic-enterprise-search-ruby/#{Elastic::EnterpriseSearch::VERSION}")
114
+ end
115
+ end
116
+ end
117
+
107
118
  include_examples 'adapters compatibility'
108
119
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-enterprise-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.8.0
4
+ version: 8.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Briano
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-05-25 00:00:00.000000000 Z
10
+ date: 2025-04-15 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: elastic-transport
@@ -104,16 +103,16 @@ dependencies:
104
103
  name: rubocop
105
104
  requirement: !ruby/object:Gem::Requirement
106
105
  requirements:
107
- - - "~>"
106
+ - - ">="
108
107
  - !ruby/object:Gem::Version
109
- version: '1'
108
+ version: '1.51'
110
109
  type: :development
111
110
  prerelease: false
112
111
  version_requirements: !ruby/object:Gem::Requirement
113
112
  requirements:
114
- - - "~>"
113
+ - - ">="
115
114
  - !ruby/object:Gem::Version
116
- version: '1'
115
+ version: '1.51'
117
116
  - !ruby/object:Gem::Dependency
118
117
  name: vcr
119
118
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +133,14 @@ dependencies:
134
133
  requirements:
135
134
  - - ">="
136
135
  - !ruby/object:Gem::Version
137
- version: '0'
136
+ version: 3.23.1
138
137
  type: :development
139
138
  prerelease: false
140
139
  version_requirements: !ruby/object:Gem::Requirement
141
140
  requirements:
142
141
  - - ">="
143
142
  - !ruby/object:Gem::Version
144
- version: '0'
143
+ version: 3.23.1
145
144
  - !ruby/object:Gem::Dependency
146
145
  name: faraday-httpclient
147
146
  requirement: !ruby/object:Gem::Requirement
@@ -202,7 +201,7 @@ description: 'Official API client for Elastic Enterprise Search APIs.
202
201
 
203
202
  '
204
203
  email:
205
- - support@elastic.co
204
+ - clients-team@elastic.co
206
205
  executables: []
207
206
  extensions: []
208
207
  extra_rdoc_files: []
@@ -226,7 +225,6 @@ files:
226
225
  - ".buildkite/run-local.sh"
227
226
  - ".buildkite/run-tests.sh"
228
227
  - ".ci/.gitignore"
229
- - ".ci/Dockerfile"
230
228
  - ".ci/make.sh"
231
229
  - ".github/check_license_headers.rb"
232
230
  - ".github/license-header.txt"
@@ -243,6 +241,7 @@ files:
243
241
  - NOTICE
244
242
  - README.md
245
243
  - Rakefile
244
+ - catalog-info.yaml
246
245
  - docs/guide/app-search-api.asciidoc
247
246
  - docs/guide/connecting.asciidoc
248
247
  - docs/guide/development.asciidoc
@@ -266,6 +265,8 @@ files:
266
265
  - docs/guide/release_notes/85.asciidoc
267
266
  - docs/guide/release_notes/86.asciidoc
268
267
  - docs/guide/release_notes/87.asciidoc
268
+ - docs/guide/release_notes/88.asciidoc
269
+ - docs/guide/release_notes/89.asciidoc
269
270
  - docs/guide/release_notes/index.asciidoc
270
271
  - docs/guide/workplace-search-api.asciidoc
271
272
  - elastic-enterprise-search.gemspec
@@ -463,7 +464,16 @@ metadata:
463
464
  homepage_uri: https://www.elastic.co/enterprise-search
464
465
  source_code_uri: https://github.com/elastic/enterprise-search-ruby
465
466
  changelog_uri: https://www.elastic.co/guide/en/enterprise-search-clients/ruby/current/release_notes.html
466
- post_install_message:
467
+ post_install_message: |2+
468
+
469
+ Warning: Starting with Elastic version 9.0, the standalone Enterprise Search products, will no longer be included in our offering. They remain supported in their current form in version 8.x and will only receive security upgrades and fixes.
470
+ Enterprise Search clients will continue to be supported in their current form throughout 8.x versions, according to our EOL policy: https://www.elastic.co/support/eol
471
+ We recommend transitioning to our actively developed Elastic Stack (https://www.elastic.co/elastic-stack) tools for your search use cases. However, if you're still using any Enterprise Search products, we recommend using the latest stable release of the clients.
472
+
473
+ Here are some useful links with more information:
474
+ * Enterprise Search FAQ: https://www.elastic.co/resources/enterprise-search/enterprise-search-faq
475
+ * Migrating to 9.x from Enterprise Search 8.x versions: https://www.elastic.co/guide/en/enterprise-search/current/upgrading-to-9-x.html
476
+
467
477
  rdoc_options: []
468
478
  require_paths:
469
479
  - lib
@@ -478,8 +488,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
478
488
  - !ruby/object:Gem::Version
479
489
  version: '0'
480
490
  requirements: []
481
- rubygems_version: 3.4.13
482
- signing_key:
491
+ rubygems_version: 3.6.2
483
492
  specification_version: 4
484
493
  summary: Official API client for Elastic Enterprise Search
485
494
  test_files: []
495
+ ...
data/.ci/Dockerfile DELETED
@@ -1,25 +0,0 @@
1
- ARG RUBY_VERSION=2.7
2
- FROM ruby:${RUBY_VERSION}
3
-
4
- # Default UID/GID to 1000
5
- # it can be overridden at build time
6
- ARG BUILDER_UID=1000
7
- ARG BUILDER_GID=1000
8
- ENV BUILDER_USER elastic
9
- ENV BUILDER_GROUP elastic
10
-
11
- ENV GEM_HOME="/usr/local/bundle"
12
- ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH
13
- ENV QUIET=true
14
- ENV CI=true
15
-
16
- # Create user
17
- RUN groupadd --system -g ${BUILDER_GID} ${BUILDER_GROUP} \
18
- && useradd --system --shell /bin/bash -u ${BUILDER_UID} -g ${BUILDER_GROUP} -d /var/lib/elastic -m elastic 1>/dev/null 2>/dev/null \
19
- && mkdir -p /code/enterprise-search-ruby && touch /Gemfile.lock \
20
- && chown -R ${BUILDER_USER}:${BUILDER_GROUP} /code/enterprise-search-ruby /Gemfile.lock
21
-
22
- WORKDIR /code/enterprise-search-ruby
23
-
24
- COPY --chown=$BUILDER_USER:$BUILDER_GROUP . .
25
- RUN bundle install