Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #776 from jwomeara/geowave-vagrant
Geowave vagrant
- Loading branch information
Showing
8 changed files
with
103 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
SERVICE_NAME=geowave | ||
PATH_TO_JAR=/home/vagrant/geowave/geowave-deploy/target/geowave-deploy-0.8.3-jace.jar | ||
CLASS_TO_RUN=mil.nga.giat.geowave.demo.app.GeoWaveDemoApp | ||
PID_PATH_NAME=/tmp/geowave-pid | ||
case $1 in | ||
start) | ||
echo "Starting $SERVICE_NAME ..." | ||
if [ ! -f $PID_PATH_NAME ]; then | ||
nohup java -Dinteractive=false -cp $PATH_TO_JAR $CLASS_TO_RUN /tmp 2>> /dev/null >> /dev/null & | ||
echo $! > $PID_PATH_NAME | ||
echo "$SERVICE_NAME started ..." | ||
else | ||
echo "$SERVICE_NAME is already running ..." | ||
fi | ||
;; | ||
stop) | ||
if [ -f $PID_PATH_NAME ]; then | ||
PID=$(cat $PID_PATH_NAME); | ||
echo "$SERVICE_NAME stopping ..." | ||
kill $PID; | ||
echo "$SERVICE_NAME stopped ..." | ||
rm $PID_PATH_NAME | ||
else | ||
echo "$SERVICE_NAME is not running ..." | ||
fi | ||
;; | ||
restart) | ||
if [ -f $PID_PATH_NAME ]; then | ||
PID=$(cat $PID_PATH_NAME); | ||
echo "$SERVICE_NAME stopping ..."; | ||
kill $PID; | ||
echo "$SERVICE_NAME stopped ..."; | ||
rm $PID_PATH_NAME | ||
echo "$SERVICE_NAME starting ..." | ||
nohup java -Dinteractive=false -cp $PATH_TO_JAR $CLASS_TO_RUN /tmp 2>> /dev/null >> /dev/null & | ||
echo $! > $PID_PATH_NAME | ||
echo "$SERVICE_NAME started ..." | ||
else | ||
echo "$SERVICE_NAME is not running ..." | ||
fi | ||
;; | ||
esac |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash -e | ||
# Installs GeoWave library | ||
git clone https://github.com/ngageoint/geowave.git geowave | ||
cd geowave | ||
git checkout tags/v0.8.3 | ||
mvn clean package -pl geowave-deploy -am -P generate-pdal-proxies,linux-amd64-gcc-release -Dpdal.directory=/home/vagrant/pdal -DskipITs=true -DskipTests=true | ||
|
||
# Configure library paths | ||
chmod 777 /home/vagrant/geowave/geowave-deploy/target/dependency/jace/libjace.so | ||
sudo ln -s /home/vagrant/geowave/geowave-deploy/target/dependency/jace/libjace.so /usr/lib/libjace.so | ||
echo "/usr/lib/jvm/java-7-oracle/jre/lib/amd64" | sudo tee --append /etc/ld.so.conf.d/awt.conf | ||
echo "/usr/lib/jvm/java-7-oracle/jre/lib/amd64/server" | sudo tee --append /etc/ld.so.conf.d/jvm.conf | ||
sudo ldconfig | ||
|
||
# Install GeoWave as a service and configure to run at startup | ||
sudo cp /home/vagrant/pdal/scripts/linux-install-scripts/geowave /etc/init.d | ||
sudo update-rc.d geowave defaults | ||
sudo service geowave start |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git clone https://github.com/PDAL/PDAL.git pdal |
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