[ARVADOS] updated: 1.3.0-3051-gdb1371648

Git user git at public.arvados.org
Mon Aug 31 21:39:11 UTC 2020


Summary of changes:
 tools/arvbox/bin/arvbox                          | 11 ++++++++++-
 tools/arvbox/lib/arvbox/docker/cluster-config.sh |  3 ---
 2 files changed, 10 insertions(+), 4 deletions(-)

       via  db13716484018404860275de75d278e0aaa08d8a (commit)
      from  4e6985fea736b4a46537005bf853de80be1b013a (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 db13716484018404860275de75d278e0aaa08d8a
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Mon Aug 31 17:37:56 2020 -0400

    Fix redundant entry in cluster config, arvbox tells you to use adduser
    
    refs #16749
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/tools/arvbox/bin/arvbox b/tools/arvbox/bin/arvbox
index 1bd0f3a66..2d930c5e6 100755
--- a/tools/arvbox/bin/arvbox
+++ b/tools/arvbox/bin/arvbox
@@ -95,6 +95,10 @@ EOF
     fi
 }
 
+listusers() {
+    docker exec -ti $ARVBOX_CONTAINER /usr/local/lib/arvbox/edit_users.py /var/lib/arvados/cluster_config.yml $(getclusterid) list
+}
+
 wait_for_arvbox() {
     FF=/tmp/arvbox-fifo-$$
     mkfifo $FF
@@ -314,6 +318,11 @@ run() {
             wait_for_arvbox
             echo "The Arvados source code is checked out at: $ARVADOS_ROOT"
 	    echo "The Arvados testing root certificate is $VAR_DATA/root-cert.pem"
+	    if [[ "$(listusers)" =~ ^\{\} ]] ; then
+		echo "No users defined, use 'arvbox adduser' to add user logins"
+	    else
+		echo "Use 'arvbox listusers' to see user logins"
+	    fi
         else
             echo "Unknown configuration '$CONFIG'"
         fi
@@ -630,7 +639,7 @@ EOF
 	;;
 
     listusers)
-	exec docker exec -ti $ARVBOX_CONTAINER /usr/local/lib/arvbox/edit_users.py /var/lib/arvados/cluster_config.yml $(getclusterid) list
+	listusers
 	;;
 
     *)
diff --git a/tools/arvbox/lib/arvbox/docker/cluster-config.sh b/tools/arvbox/lib/arvbox/docker/cluster-config.sh
index 28af50613..db1778092 100755
--- a/tools/arvbox/lib/arvbox/docker/cluster-config.sh
+++ b/tools/arvbox/lib/arvbox/docker/cluster-config.sh
@@ -110,9 +110,6 @@ Clusters:
         ExternalURL: "https://$localip:${services[controller-ssl]}"
         InternalURLs:
           "http://localhost:${services[controller]}": {}
-      RailsAPI:
-        InternalURLs:
-          "http://localhost:${services[api]}/": {}
     PostgreSQL:
       ConnectionPool: 32 # max concurrent connections per arvados server daemon
       Connection:

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list