2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
8 . /usr/local/lib/arvbox/common.sh
10 git config --system "credential.http://$localip:${services[arv-git-httpd]}/.username" none
11 git config --system "credential.http://$localip:${services[arv-git-httpd]}/.helper" '!cred(){ cat >/dev/null; if [ "$1" = get ]; then echo password=$ARVADOS_API_TOKEN; fi; };cred'
13 /usr/local/lib/arvbox/runsu.sh $0-service
15 cd /usr/src/arvados/services/login-sync
17 export ARVADOS_API_HOST=$localip:${services[api]}
18 export ARVADOS_API_HOST_INSECURE=1
19 export ARVADOS_API_TOKEN=$(cat /var/lib/arvados/superuser_token)
20 export ARVADOS_VIRTUAL_MACHINE_UUID=$(cat /var/lib/arvados/vm-uuid)
23 bundle exec arvados-login-sync