Merge branch '4434-collation' closes #4434
[arvados.git] / doc / install / create-standard-objects.html.textile.liquid
index 678127bbfad97fbb0b90e9e7e725746d2042b9c8..92b0aded5cd0f342489ba49aea4f1a943de14460 100644 (file)
@@ -6,55 +6,40 @@ title: Create standard objects
 ...
 
 
+Next, we're going to use the Arvados CLI tools on the <strong>shell server</strong> to create some standard objects.
 
 h3. "All users" group
 
 The convention is to add every active user to this group. We give it a distinctive UUID that looks like an IP broadcast address.
 
-<pre>
-prefix=`arv user current | cut -d- -f1`
-read -rd $'\000' newgroup <<EOF; arv group create --group "$newgroup"
-{
+<notextile>
+<pre><code>~$ <span class="userinput">prefix=`arv --format=uuid user current | cut -d- -f1`</span>
+~$ <span class="userinput">echo "Site prefix is '$prefix'"</span>
+~$ <span class="userinput">read -rd $'\000' newgroup &lt;&lt;EOF; arv group create --group "$newgroup"</span>
+<span class="userinput">{
  "uuid":"$prefix-j7d0g-fffffffffffffff",
  "name":"All users"
-}
+}</span>
 EOF
-</pre>
+</code></pre></notextile>
 
 h3. "arvados" repository
 
-This will be readable by the "All users" group, and therefore by every active user. This makes it possible for users to run the bundled Crunch scripts by specifying a commit like "arvados:HEAD", rather than having to pull the Arvados git tree into their own repositories.
+This will be readable by the "All users" group, and therefore by every active user. This makes it possible for users to run the bundled Crunch scripts by specifying @"script_version":"master","repository":"arvados"@ rather than pulling the Arvados source tree into their own repositories.
 
-<pre>
-prefix=`arv user current | cut -d- -f1`
-all_users_group_uuid="$prefix-j7d0g-fffffffffffffff"
-repo_uuid=`arv repository create --repository '{"name":"arvados"}'`
-echo "Arvados repository uuid is $repo_uuid"
-
-read -rd $'\000' newlink <<EOF; arv link create --link "$newlink" 
-{
- "tail_kind":"arvados#group",
+<notextile>
+<pre><code>~$ <span class="userinput">prefix=`arv --format=uuid user current | cut -d- -f1`</span>
+~$ <span class="userinput">echo "Site prefix is '$prefix'"</span>
+~$ <span class="userinput">all_users_group_uuid="$prefix-j7d0g-fffffffffffffff"</span>
+~$ <span class="userinput">repo_uuid=`arv --format=uuid repository create --repository '{"name":"arvados"}'`</span>
+~$ <span class="userinput">echo "Arvados repository uuid is '$repo_uuid'"</span>
+~$ <span class="userinput">read -rd $'\000' newlink &lt;&lt;EOF; arv link create --link "$newlink"</span>
+<span class="userinput">{
  "tail_uuid":"$all_users_group_uuid",
- "head_kind":"arvados#repository",
  "head_uuid":"$repo_uuid",
  "link_class":"permission",
  "name":"can_read" 
 }                                         
-EOF
-</pre>
-
-h3. Keep disks
+EOF</span>
+</code></pre></notextile>
 
-Currently, you need to tell Arvados about Keep disks manually.
-
-<pre>
-secret=`ruby -e 'print rand(2**512).to_s(36)[0..49]'`
-arv keep_disk create --keep-disk <<EOF
-{
- "service_host":"keep0.xyzzy.arvadosapi.com",
- "service_port":25107,
- "service_ssl_flag":false,
- "ping_secret":"$secret"
-}
-EOF
-</pre>