[ARVADOS] created: 9e9ff16ee97d487a86cd5fee61824f5b4a29984a
git at public.curoverse.com
git at public.curoverse.com
Fri Jun 5 15:46:12 EDT 2015
at 9e9ff16ee97d487a86cd5fee61824f5b4a29984a (commit)
commit 9e9ff16ee97d487a86cd5fee61824f5b4a29984a
Author: Brett Smith <brett at curoverse.com>
Date: Fri Jun 5 15:46:08 2015 -0400
6152: Use Python SDK for compute node installation.
This eliminates an otherwise-needless dependency on `arv` and the
entire Ruby stack.
diff --git a/doc/install/install-compute-node.html.textile.liquid b/doc/install/install-compute-node.html.textile.liquid
index dd64cd0..9a64ac3 100644
--- a/doc/install/install-compute-node.html.textile.liquid
+++ b/doc/install/install-compute-node.html.textile.liquid
@@ -72,8 +72,14 @@ Then execute this script to create a compute node object, and set up a cron job
<notextile>
<pre><code>
#!/bin/bash
+set -e
if ! test -f /root/node.json ; then
- arv node create --node "{\"hostname\": \"$(hostname)\"}" > /root/node.json
+ python - <<EOF
+import arvados, json, socket
+node = arvados.api('v1').nodes().create(body={'hostname': socket.gethostname()}).execute()
+with open('/root/node.json', 'w') as node_file:
+ json.dump(node, node_file, indent=2)
+EOF
# Make sure /dev/fuse permissions are correct (the device appears after fuse is loaded)
chmod 1660 /dev/fuse && chgrp fuse /dev/fuse
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list