[ARVADOS] updated: 1.2.0-317-gc663e037c
Git user
git at public.curoverse.com
Thu Nov 8 11:17:18 EST 2018
Summary of changes:
tools/arvbox/bin/arvbox | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
via c663e037c8ad2c8dab1f4867a51e3d045357c9f6 (commit)
from c47872d7d78f44040494892d91ccbb8970d1907a (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 c663e037c8ad2c8dab1f4867a51e3d045357c9f6
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Thu Nov 8 11:16:53 2018 -0500
"arvbox status" includes cluster id refs #14198
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/tools/arvbox/bin/arvbox b/tools/arvbox/bin/arvbox
index a26c396e2..69fc2cede 100755
--- a/tools/arvbox/bin/arvbox
+++ b/tools/arvbox/bin/arvbox
@@ -75,6 +75,10 @@ gethost() {
fi
}
+getclusterid() {
+ docker exec $ARVBOX_CONTAINER cat /var/lib/arvados/api_uuid_prefix
+}
+
updateconf() {
if test -f ~/.config/arvados/$ARVBOX_CONTAINER.conf ; then
sed "s/ARVADOS_API_HOST=.*/ARVADOS_API_HOST=$(gethost):8000/" <$HOME/.config/arvados/$ARVBOX_CONTAINER.conf >$HOME/.config/arvados/$ARVBOX_CONTAINER.conf.tmp
@@ -382,8 +386,9 @@ case "$subcmd" in
;;
status)
- echo "Selected: $ARVBOX_CONTAINER"
+ echo "Container: $ARVBOX_CONTAINER"
if docker ps -a --filter "status=running" | grep -E "$ARVBOX_CONTAINER$" -q ; then
+ echo "Cluster id: $(getclusterid)"
echo "Status: running"
echo "Container IP: $(getip)"
echo "Published host: $(gethost)"
@@ -453,11 +458,11 @@ case "$subcmd" in
sv)
if test -n "$1" -a -n "$2" ; then
- exec docker exec -ti $ARVBOX_CONTAINER sv "$@"
+ exec docker exec $ARVBOX_CONTAINER sv "$@"
else
echo "Usage: $0 $subcmd <start|stop|restart> <service>"
echo "Available services:"
- exec docker exec -ti $ARVBOX_CONTAINER ls /etc/service
+ exec docker execa $ARVBOX_CONTAINER ls /etc/service
fi
;;
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list