-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_eagle.sh
executable file
·30 lines (30 loc) · 1.19 KB
/
run_eagle.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
case "$1" in
"dep")
VCS_TAG=`git describe --tags --abbrev=0|sed s/v//`
echo "Running EAGLE deployment version in background..."
docker run -d --name eagle-dep --rm -p 8888:80/tcp icrar/eagle:${VCS_TAG}
sleep 5
python -m webbrowser http://localhost:8888
exit 1;;
"rel")
VCS_TAG=`git describe --tags --abbrev=0|sed s/v//`
echo "Running EAGLE release version in background..."
docker run -d --name eagle-dep --rm -p 6080:80/tcp icrar/eagle:${VCS_TAG}
exit 1;;
"dev")
export VCS_TAG=`git rev-parse --abbrev-ref HEAD`
ln -sf docker/prestart.dev.sh prestart.sh
echo "Running EAGLE development version in foreground..."
docker run --volume $PWD:/app --name eagle-dev --rm -p 8888:80/tcp icrar/eagle:${VCS_TAG}
exit 1;;
"slim")
VCS_TAG=`git describe --tags --abbrev=0|sed s/v//`
echo "Running EAGLE deployment version in background..."
docker run -d --name eagle-slim --rm -p 8888:80/tcp icrar/eagle.slim
sleep 5
python -m webbrowser http://localhost:8888
exit 1;;
*)
echo "Usage run_eagle.sh <dep|dev|rel|slim>"
exit 1;;
esac