-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed run script to allow local mounting for develpment
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
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 |
---|---|---|
@@ -1 +1,15 @@ | ||
docker run --name daliuge-translator --rm -t -p 8084:8084 icrar/daliuge-translator:ray | ||
case "$1" in | ||
"dep") | ||
VCS_TAG=`git describe --tags --abbrev=0|sed s/v//` | ||
echo "Running Translator deployment version in background..." | ||
docker run --name daliuge-translator --rm -t -p 8084:8084 icrar/daliuge-translator:ray | ||
exit 1;; | ||
"dev") | ||
export VCS_TAG=`git rev-parse --abbrev-ref HEAD` | ||
echo "Running Translator development version in foreground..." | ||
docker run --volume $PWD/dlg/dropmake:/home/ray/dlg/lib/python3.8/site-packages/dlg/dropmake --name daliuge-translator --rm -t -p 8084:8084 icrar/daliuge-translator:ray | ||
exit 1;; | ||
*) | ||
echo "Usage run_translator.sh <dep|dev>" | ||
exit 1;; | ||
esac |