Skip to content

Instantly share code, notes, and snippets.

@mlocher
Forked from flomotlik/elasticinstall.sh
Last active August 29, 2015 14:01
Show Gist options
  • Save mlocher/140a37fb5ffe2007373a to your computer and use it in GitHub Desktop.
Save mlocher/140a37fb5ffe2007373a to your computer and use it in GitHub Desktop.
Install any ElasticSearch version on Codeship
#!/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
@mlocher
Copy link
Author

mlocher commented Apr 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment