[ARVADOS-DEV] updated: 738bac6d373ec54b4bf75b2da71b9c65203ecc76

git at public.curoverse.com git at public.curoverse.com
Mon Jan 25 10:34:19 EST 2016


Summary of changes:
 arvbox/bin/arvbox | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

       via  738bac6d373ec54b4bf75b2da71b9c65203ecc76 (commit)
      from  9a0aa9fcfdaec36bfa0cec543d8502f4006df2e8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 738bac6d373ec54b4bf75b2da71b9c65203ecc76
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Jan 25 10:34:02 2016 -0500

    Add "status" command, refs #8080

diff --git a/arvbox/bin/arvbox b/arvbox/bin/arvbox
index 284f0ef..4f1d94a 100755
--- a/arvbox/bin/arvbox
+++ b/arvbox/bin/arvbox
@@ -299,6 +299,23 @@ case "$subcmd" in
         fi
         ;;
 
+    status)
+        echo "Selected: $ARVBOX_CONTAINER"
+        if docker ps -a --filter "status=running" | grep -E "$ARVBOX_CONTAINER$" -q ; then
+            echo "Status: running"
+            echo "IP: $(getip)"
+        else
+            echo "Status: not running"
+        fi
+        if test -d "$ARVBOX_DATA" ; then
+            echo "Data: $ARVBOX_DATA"
+        elif docker ps -a | grep -E "$ARVBOX_CONTAINER-data$" -q ; then
+            echo "Data: $ARVBOX_CONTAINER-data"
+        else
+            echo "Data: none"
+        fi
+        ;;
+
     reset|destroy)
         stop
         if test -d "$ARVBOX_DATA" ; then
@@ -365,6 +382,7 @@ case "$subcmd" in
         echo "open       open arvbox workbench in a web browser"
         echo "shell      enter arvbox shell"
         echo "ip         print arvbox ip address"
+        echo "status     print some information about current arvbox"
         echo "stop       stop arvbox container"
         echo "restart <config>  stop, then run again"
         echo "reboot  <config>  stop, build arvbox Docker image, run"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list