Permalink
Browse files

Making udock always persist, and on a Mac, open browser

  • Loading branch information...
TimLethbridge committed Oct 20, 2017
1 parent 6e9a8fe commit c78fb72a8c51348994e2d0957ffdab8e174f17c6
Showing with 4 additions and 1 deletion.
  1. +4 −1 dev-tools/udock
View
@@ -1,7 +1,7 @@
#!/bin/csh -fb
echo Command to run UmpleOnline in docker
echo 'syntax: udoc {image} {-d storagedirectory}'
set dir=""
set dir="umpleonline-tmp$$"
set volcommand =""
set image=""
if("$1" != "") then
@@ -45,5 +45,8 @@ docker pull umple/umpleonline$image
echo Will run docker image ... use control-c to cancel
echo "To see: open http://localhost:8000/umple.php$modelarg"
echo "For log: open http://localhost:8000/scripts/log.php"
if (`uname` == "Darwin") then
( sleep 2 ; open "http://localhost:8000/umple.php$modelarg" ) &
endif
docker run --rm -ti -p 8000:80 $volcommand umple/umpleonline$image >/dev/null
echo Docker image quit

0 comments on commit c78fb72

Please sign in to comment.