15138: Include logic to support building multiple versions of our documentation.
[arvados.git] / doc / _includes / _example_docker.liquid
1 {% comment %}
2 Copyright (C) The Arvados Authors. All rights reserved.
3
4 SPDX-License-Identifier: CC-BY-SA-3.0
5 {% endcomment %}
6
7 {
8     "name": "Example using R in a custom Docker image",
9     "components": {
10         "Rscript": {
11             "script": "run-command",
12             "script_version": "master",
13             "repository": "arvados",
14             "script_parameters": {
15                 "command": [
16                     "Rscript",
17                     "$(glob $(file $(myscript))/*.r)",
18                     "$(glob $(dir $(mydata))/*.csv)"
19                 ],
20                 "myscript": {
21                     "required": true,
22                     "dataclass": "Collection"
23                 },
24                 "mydata": {
25                     "required": true,
26                     "dataclass": "Collection"
27                 }
28             },
29             "runtime_constraints": {
30                 "docker_image": "arvados/jobs-with-r"
31             }
32         }
33     }
34 }