3824: Create "all users" group in seeds.rb instead of asking a human to do it.
[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
9 Next, we're going to use the Arvados CLI tools on the <strong>shell server</strong> to set up a locally hosted clone of the arvados repository.
10
11 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.
12
13 <notextile>
14 <pre><code>~$ <span class="userinput">prefix=`arv --format=uuid user current | cut -d- -f1`</span>
15 ~$ <span class="userinput">echo "Site prefix is '$prefix'"</span>
16 ~$ <span class="userinput">all_users_group_uuid="$prefix-j7d0g-fffffffffffffff"</span>
17 ~$ <span class="userinput">repo_uuid=`arv --format=uuid repository create --repository '{"name":"arvados"}'`</span>
18 ~$ <span class="userinput">echo "Arvados repository uuid is '$repo_uuid'"</span>
19 ~$ <span class="userinput">read -rd $'\000' newlink &lt;&lt;EOF; arv link create --link "$newlink"</span>
20 <span class="userinput">{
21  "tail_uuid":"$all_users_group_uuid",
22  "head_uuid":"$repo_uuid",
23  "link_class":"permission",
24  "name":"can_read" 
25 }                                         
26 EOF</span>
27 </code></pre></notextile>
28