3 . /etc/profile.d/rvm.sh
5 export ARVADOS_API_HOST=api
6 export ARVADOS_API_HOST_INSECURE=yes
7 export ARVADOS_API_TOKEN=@@API_SUPERUSER_SECRET@@
9 arv node create --node {} > /tmp/node.json
11 UUID=`grep \"uuid\" /tmp//node.json |cut -f4 -d\"`
12 PING_SECRET=`grep \"ping_secret\" /tmp//node.json |cut -f4 -d\"`
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
17 /usr/bin/curl -k -d ping_secret=$PING_SECRET https://api/arvados/v1/nodes/$UUID/ping?ping_secret=$PING_SECRET
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