-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
61 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
|
||
def detail_workflow(): | ||
print("Show details of a workflow") | ||
pass |
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 @@ | ||
Error: Unable to access jarfile geoweaver.jar |
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,5 @@ | ||
|
||
|
||
def list_hosts(): | ||
print("List all hosts") | ||
pass |
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,5 @@ | ||
|
||
|
||
def list_processes(): | ||
print("all the geoweaver cli") | ||
pass |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
|
||
def list_workflows(): | ||
|
||
pass | ||
|
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,6 @@ | ||
|
||
|
||
|
||
def run_workflow(): | ||
print("Run workflow: ") | ||
pass |
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 |
---|---|---|
@@ -1,5 +1,32 @@ | ||
#!/bin/bash | ||
|
||
wget https://github.com/ESIPFed/Geoweaver/releases/download/latest/geoweaver.jar -O ~/ | ||
FILE=~/geoweaver.jar | ||
if [ -f "$FILE" ]; then | ||
echo "$FILE exists. Skip downloading.." | ||
else | ||
echo "Downloading the latest geoweaver.jar to user home directory" | ||
cd ~ && curl -OL https://github.com/ESIPFed/Geoweaver/releases/download/latest/geoweaver.jar | ||
fi | ||
|
||
java -jar ~/geoweaver.jar | ||
echo "Stop running Geoweaver if any.." | ||
kill $(ps aux | grep 'geoweaver.jar' | awk '{print $2}') | ||
|
||
echo "Start Geoweaver.." | ||
nohup java -jar ~/geoweaver.jar > ~/geoweaver.log & | ||
|
||
STATUS=0 | ||
counter=0 | ||
until [ $STATUS == 302 ] || [ $counter == 20 ] | ||
do | ||
sleep 2 | ||
STATUS=$(curl -s -o /dev/null -w "%{http_code}\n" "http://localhost:8070/Geoweaver") | ||
((counter++)) | ||
done | ||
|
||
if [ $counter == 20 ] ; then | ||
echo "Error: Geoweaver is not up" | ||
exit 1 | ||
else | ||
echo "Success: Geoweaver is up" | ||
exit 0 | ||
fi |
Empty file.
Empty file.