X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2e437823d2d19edf5c6be392f3604a499308cd6e..6549d7f1234bb6c8cf3ae5032b8105a5e8229e7a:/tools/arvbox/lib/arvbox/docker/service/ready/run-service diff --git a/tools/arvbox/lib/arvbox/docker/service/ready/run-service b/tools/arvbox/lib/arvbox/docker/service/ready/run-service index 977f61298f..6ec788589f 100755 --- a/tools/arvbox/lib/arvbox/docker/service/ready/run-service +++ b/tools/arvbox/lib/arvbox/docker/service/ready/run-service @@ -1,13 +1,13 @@ #!/bin/bash +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 . /usr/local/lib/arvbox/common.sh set -eu -o pipefail if ! [[ -d /tmp/arvbox-ready ]] ; then - echo - echo "Arvados-in-a-box starting" - echo echo "Note: if this is a fresh arvbox installation, it may take 10-15 minutes (or longer) to download and" echo "install dependencies. Use \"arvbox log\" to monitor the progress of specific services." echo @@ -41,17 +41,17 @@ for sdk_app in arv arv-get cwl-runner arv-mount ; do fi done -if ! (ps x | grep -v grep | grep "crunch-dispatch") > /dev/null ; then +if ! (ps ax | grep -v grep | grep "crunch-dispatch") > /dev/null ; then waiting="$waiting crunch-dispatch" fi -export ARVADOS_API_HOST=$localip:${services[api]} +export ARVADOS_API_HOST=$localip:${services[controller-ssl]} export ARVADOS_API_HOST_INSECURE=1 vm_ok=0 -if test -s /var/lib/arvados/vm-uuid -a -s /var/lib/arvados/superuser_token; then - vm_uuid=$(cat /var/lib/arvados/vm-uuid) - export ARVADOS_API_TOKEN=$(cat /var/lib/arvados/superuser_token) +if test -s $ARVADOS_CONTAINER_PATH/vm-uuid -a -s $ARVADOS_CONTAINER_PATH/superuser_token; then + vm_uuid=$(cat $ARVADOS_CONTAINER_PATH/vm-uuid) + export ARVADOS_API_TOKEN=$(cat $ARVADOS_CONTAINER_PATH/superuser_token) if (which arv && arv virtual_machine get --uuid $vm_uuid) >/dev/null 2>/dev/null ; then vm_ok=1 fi @@ -63,18 +63,17 @@ fi if ! [[ -z "$waiting" ]] ; then if ps x | grep -v grep | grep "bundle install" > /dev/null; then - gemcount=$(ls /var/lib/gems/ruby/2.1.0/gems 2>/dev/null | wc -l) + gemcount=$(ls /var/lib/arvados/lib/ruby/gems/*/gems 2>/dev/null | wc -l) gemlockcount=0 for l in /usr/src/arvados/services/api/Gemfile.lock \ - /usr/src/arvados/apps/workbench/Gemfile.lock \ - /usr/src/sso/Gemfile.lock ; do + /usr/src/arvados/apps/workbench/Gemfile.lock ; do gc=$(cat $l \ - | grep -vE "(GEM|PLATFORMS|DEPENDENCIES|$^|remote:|specs:)" \ + | grep -vE "(GEM|PLATFORMS|DEPENDENCIES|BUNDLED|GIT|$^|remote:|specs:|revision:)" \ | sed 's/^ *//' | sed 's/(.*)//' | sed 's/ *$//' | sort | uniq | wc -l) gemlockcount=$(($gemlockcount + $gc)) done - waiting="$waiting (installing ruby gems $gemcount/$gemlockcount)" + waiting="$waiting (installing ruby gems $gemcount of about $gemlockcount)" fi if ps x | grep -v grep | grep "c++.*/var/lib/passenger" > /dev/null ; then @@ -90,8 +89,7 @@ fi echo echo "Your Arvados-in-a-box is ready!" -echo "Workbench is running at http://$localip" +echo "Workbench is running at https://$localip" +echo "Workbench2 is running at https://$localip:${services[workbench2-ssl]}" rm -r /tmp/arvbox-ready - -sv stop ready >/dev/null