Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / docker / compute / setup.sh.in
1 #!/bin/bash
2
3 . /etc/profile.d/rvm.sh
4
5 export ARVADOS_API_HOST=api
6 export ARVADOS_API_HOST_INSECURE=yes
7 export ARVADOS_API_TOKEN=@@API_SUPERUSER_SECRET@@
8
9 arv node create --node {} > /tmp/node.json
10
11 UUID=`grep \"uuid\" /tmp//node.json  |cut -f4 -d\"`
12 PING_SECRET=`grep \"ping_secret\" /tmp//node.json  |cut -f4 -d\"`
13
14 echo "*/5 * * * * root /usr/bin/curl -k -d ping_secret=$PING_SECRET https://api/arvados/v1/nodes/$UUID/ping" > /etc/cron.d/node_ping
15
16 # Send a ping now
17 /usr/bin/curl -k -d ping_secret=$PING_SECRET https://api/arvados/v1/nodes/$UUID/ping?ping_secret=$PING_SECRET
18
19 # Just make sure /dev/fuse permissions are correct (the device appears after fuse is loaded)
20 chmod 1660 /dev/fuse && chgrp fuse /dev/fuse