Merge branch 'master' into github-3408-production-datamanager
[arvados.git] / doc / install / create-standard-objects.html.textile.liquid
1 ---
2 layout: default
3 navsection: installguide
4 title: Create standard objects
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.
9
10 First we create a repository object which will be used to set up a hosted clone of the arvados repository on this cluster.
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 "{\"owner_uuid\":\"$prefix-tpzed-000000000000000\", \"name\":\"arvados\"}"`</span>
17 ~$ <span class="userinput">echo "Arvados repository uuid is '$repo_uuid'"</span>
18 </code></pre></notextile>
19
20 Secondly, create a link object to make the repository object 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.
21
22 <notextile>
23 <pre><code>~$ <span class="userinput">read -rd $'\000' newlink &lt;&lt;EOF; arv link create --link "$newlink"</span>
24 <span class="userinput">{
25  "tail_uuid":"$all_users_group_uuid",
26  "head_uuid":"$repo_uuid",
27  "link_class":"permission",
28  "name":"can_read"
29 }
30 EOF</span>
31 </code></pre></notextile>
32
33 Next, create a default project for the standard Arvados Docker images, and give all users read access to it. The project is owned by the system user.
34
35 <notextile>
36 <pre><code>~$ <span class="userinput">project_uuid=`arv --format=uuid group create --group "{\"owner_uuid\":\"$prefix-tpzed-000000000000000\", \"name\":\"Arvados Standard Docker Images\"}"`</span>
37 ~$ <span class="userinput">echo "Arvados project uuid is '$project_uuid'"</span>
38 ~$ <span class="userinput">read -rd $'\000' newlink &lt;&lt;EOF; arv link create --link "$newlink"</span>
39 <span class="userinput">{
40  "tail_uuid":"$all_users_group_uuid",
41  "head_uuid":"$project_uuid",
42  "link_class":"permission",
43  "name":"can_read"
44 }
45 EOF</span>
46 </code></pre></notextile>