Shippable / support

Shippable SaaS customers can report issues and feature requests in this repository
100 stars 28 forks source link

Elasticsearch 7.x #5179

Closed soltex1 closed 3 years ago

soltex1 commented 3 years ago

I am running a rails application that uses the gems elasticsearch-model and elasticsearch-rails:

gem 'elasticsearch-model', '~> 7.1.1'
gem 'elasticsearch-rails', '~> 7.1.1'

And it requires elasticsearch 7.x.

However, the last version that I see on docs is 6.6.0: http://docs.shippable.com/platform/runtime/machine-image/services-versions/#elasticsearch

The problem is that the build is failing, but if I change the versions of the gems to 6.1.1, it works fine.

Here's the error: Captura de ecrã de 2020-11-27 18-27-44

Is there a way to use elasticsearch 7.x?

soltex1 commented 3 years ago

solution

If you want to use a specific version of elasticsearch, you have to run it manually, instead of using it as a service. This can be done by adding commands to your elasticsearch.yml file. This is my configuration to use version 7.10.0:

  ci:
    - wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0-amd64.deb
    - wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0-amd64.deb.sha512
    - shasum -a 512 -c elasticsearch-7.10.0-amd64.deb.sha512
    - sudo dpkg -i elasticsearch-7.10.0-amd64.deb
    - sudo -i service elasticsearch start
    - sudo -i service elasticsearch status