3 navsection: installguide
4 title: Add an Arvados repository
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.
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.
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 <<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",
26 </code></pre></notextile>