X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7daef1e224ee6fb8b03cd7b71773c5381c07324e..4a466cd2caf121678a1d46d049c5b1e5477b6d50:/docker/compute/setup.sh.in diff --git a/docker/compute/setup.sh.in b/docker/compute/setup.sh.in deleted file mode 100755 index efb2c4148e..0000000000 --- a/docker/compute/setup.sh.in +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -. /etc/profile.d/rvm.sh - -export ARVADOS_API_HOST=api -export ARVADOS_API_HOST_INSECURE=yes -export ARVADOS_API_TOKEN=@@API_SUPERUSER_SECRET@@ -export HOME=/root - -# Wait for API server to come up. -while ! arv user current ; do sleep 1 ; done - -if ! test -f /root/node.json ; then - arv node create --node "{\"hostname\": \"$(hostname)\"}" > /root/node.json - - # Make sure /dev/fuse permissions are correct (the device appears after fuse is loaded) - chmod 1660 /dev/fuse && chgrp fuse /dev/fuse -fi - -UUID=`grep \"uuid\" /root/node.json |cut -f4 -d\"` -PING_SECRET=`grep \"ping_secret\" /root/node.json |cut -f4 -d\"` - -if ! test -f /etc/cron.d/node_ping ; then - echo "*/5 * * * * root /usr/bin/curl -k -d ping_secret=$PING_SECRET https://api/arvados/v1/nodes/$UUID/ping" > /etc/cron.d/node_ping -fi - -/usr/bin/curl -k -d ping_secret=$PING_SECRET https://api/arvados/v1/nodes/$UUID/ping?ping_secret=$PING_SECRET