15814: Fix sequencing for setupDockerImage
[arvados.git] / doc / _includes / _setup_debian_repo.liquid
1 {% comment %}
2 Copyright (C) The Arvados Authors. All rights reserved.
3
4 SPDX-License-Identifier: CC-BY-SA-3.0
5
6 packages_to_install may be a space-separated string
7 {% endcomment %}
8
9 Set up the Arvados package repository
10 {%- if packages_to_install == nil %}
11 {%- elsif packages_to_install contains " " %} and install the packages
12 {%- else %} and install @{{ packages_to_install }}@
13 {%- endif %} by running these commands:
14
15 <notextile>
16 <pre><code># <span class="userinput">install -d /etc/apt/keyrings</span>
17 # <span class="userinput">curl -fsSL -o /etc/apt/keyrings/arvados.asc https://apt.arvados.org/pubkey.gpg</span>
18 # <span class="userinput">declare $(grep "^VERSION_CODENAME=" /etc/os-release || echo VERSION_CODENAME=MISSING)</span>
19 # <span class="userinput">tee /etc/apt/sources.list.d/arvados.sources &gt;/dev/null &lt;&lt;EOF
20 Types: deb
21 URIs: https://apt.arvados.org/$VERSION_CODENAME
22 Suites: $VERSION_CODENAME
23 Components: main
24 Signed-by: /etc/apt/keyrings/arvados.asc
25 EOF</span>
26 # <span class="userinput">apt update</span>
27 {%- if packages_to_install != nil %}
28 # <span class="userinput">apt install {{ packages_to_install }}</span>
29 {% endif -%}
30 </code></pre>
31 </notextile>