Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / doc / install / create-standard-objects.html.textile.liquid
1 ---
2 layout: default
3 navsection: installguide
4 title: Add an Arvados repository
5
6 ...
7
8 Next, we're going to use the Arvados CLI tools on the <strong>shell server</strong> to create a few Arvados objects. These objects set up a hosted clone of the arvados repository on this cluster.
9
10 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.
11
12 <notextile>
13 <pre><code>~$ <span class="userinput">prefix=`arv --format=uuid user current | cut -d- -f1`</span>
14 ~$ <span class="userinput">echo "Site prefix is '$prefix'"</span>
15 ~$ <span class="userinput">all_users_group_uuid="$prefix-j7d0g-fffffffffffffff"</span>
16 ~$ <span class="userinput">repo_uuid=`arv --format=uuid repository create --repository '{"name":"arvados"}'`</span>
17 ~$ <span class="userinput">echo "Arvados repository uuid is '$repo_uuid'"</span>
18 ~$ <span class="userinput">read -rd $'\000' newlink &lt;&lt;EOF; arv link create --link "$newlink"</span>
19 <span class="userinput">{
20  "tail_uuid":"$all_users_group_uuid",
21  "head_uuid":"$repo_uuid",
22  "link_class":"permission",
23  "name":"can_read" 
24 }                                         
25 EOF</span>
26 </code></pre></notextile>
27