-
-
Save mlocher/140a37fb5ffe2007373a to your computer and use it in GitHub Desktop.
Install any ElasticSearch version on Codeship
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Please see an updated version of this script available at " | |
echo "https://github.com/codeship/scripts/blob/master/packages/elasticsearch.sh" | |
VERSION="1.1.1" | |
PORT="9333" | |
PWD=`pwd` | |
mkdir -p ~/elasticsearch/ | |
cd ~/elasticsearch/ | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${VERSION}.zip | |
unzip elasticsearch-${VERSION}.zip | |
cd elasticsearch-${VERSION} | |
echo "http.port: ${PORT}" >> config/elasticsearch.yml | |
# Make sure to use the exact parameters you want for elasticsearch and give it enough sleep time to properly start up | |
nohup bash -c "./bin/elasticsearch 2>&1" & | |
cd $PWD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Moved over to https://github.com/codeship/scripts/blob/master/packages/elasticsearch.sh