This article is about Codeship Basic.

Elasticsearch

You will need about one minute to read this article.

Elasticsearch 6.6.1 is installed on the default port 9200 and doesn’t require any credentials. However, it is not running by default. To use this version of Elasticsearch during your builds, start the service with this command:

sudo /etc/init.d/elasticsearch start

Other Versions

If you need to install a different version or use a custom configuration, please see this script.

For example if you want to install 6.7.0, set that version and port number as environment variables in your project or add this in the Setup Commands:

export ELASTICSEARCH_VERSION=6.7.0
export ELASTICSEARCH_PORT=9200

Java 8 is set by default, but if the Elasticsearch version being used needs a specific Java version be sure to set it in your Setup Commands.

Finally add this command to your Setup Commands and the script will automatically be called at build time. Note, this script automatically starts the Elasticsearch service. Do not call the sudo command mentioned above, otherwise there will be two instances of Elasticsearch running in the build.

\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/elasticsearch.sh | bash -s

Need more help?

Contact our support team or post on Stack Overflow using the tag #codeship. Did you check the status page and changelog?

There are also several code examples and sample projects available for you to get started with.

Article not helpful?

Does this article need improvement? If so, please send feedback or submit a pull request!