-~$ cd /etc/sv
+~$ sudo mkdir -p /etc/sv
+~$ cd /etc/sv
/etc/sv$ sudo mkdir arvados-docker-cleaner; cd arvados-docker-cleaner
/etc/sv/arvados-docker-cleaner$ sudo mkdir log log/main
/etc/sv/arvados-docker-cleaner$ sudo sh -c 'cat >log/run' <<'EOF'
@@ -106,6 +100,7 @@ EOF
exec python3 -m arvados_docker.cleaner --quota 50G
EOF
/etc/sv/arvados-docker-cleaner$ sudo chmod +x run log/run
+/etc/sv/arvados-docker-cleaner$ sudo ln -s "$(pwd)" /etc/service/
@@ -152,8 +147,7 @@ if ! test -f /root/node.json ; then
import arvados, json, socket
fqdn = socket.getfqdn()
hostname, _, domain = fqdn.partition('.')
-ip_address = socket.gethostbyname(fqdn)
-node = arvados.api('v1').nodes().create(body={'hostname': hostname, 'domain': domain, 'ip_address': ip_address}).execute()
+node = arvados.api('v1').nodes().create(body={'hostname': hostname, 'domain': domain}).execute()
with open('/root/node.json', 'w') as node_file:
json.dump(node, node_file, indent=2)
EOF
@@ -183,4 +177,3 @@ And remove your token from the environment:
-