-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.template
55 lines (40 loc) · 2.07 KB
/
README.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# vice-rstudio-{{variant}}
RStudio image{{varianttitle}}, based on the
[Rocker RStudio Docker image](https://hub.docker.com/r/{{baseimage}}),
for CyVerse VICE. VICE requires additional configuration files (e.g. `nginx`) to
be compatible with our Condor and Kubernetes orchestration.
# Instructions
## Run this Docker locally or on a Virtual Machine
To run these containers, you must first pull them from DockerHub
```
docker pull {{dockerhuborg}}/vice-rstudio-{{variant}}:latest
```
```
docker run -it --rm -v /$HOME:/app --workdir /app -p 8787:80 -e REDIRECT_URL=http://localhost:8787 {{dockerhuborg}}/vice-rstudio-{{variant}}:latest
```
The default username is `rstudio` and password is `rstudio1`. To reset the
password, add the flag `-e PASSWORD=<yourpassword>` in the `docker run`
statement.
## Build your own Docker container and deploy on CyVerse VICE
This container is intended to run on the CyVerse data science workbench, called
[VICE](https://cyverse-visual-interactive-computing-environment.readthedocs-hosted.com/en/latest/index.html).
Unless you plan on making changes to this container, you should just use the
existing launch button above.
## Supported tags
In general, avoid using the `latest` tag to reference a Docker image: the image
it refers to will change over time, but if you use an explicitly numbered tag
such as `3.6.1` you will have a better chance of repeating results in a
reproducible environment. The available tags are based on those the upstream
Rocker project uses, currently
{{taglist}}
Use the `devel` tag with caution: it refers to the latest development version,
so might change even more often than `latest` and is not even guaranteed to work
at all.
###### Developer notes
To build your own container with a Dockerfile and additional dependencies, pull
the pre-built image from DockerHub:
```
FROM {{dockerhuborg}}/vice-rstudio-{{variant}}:latest
```
Follow the instructions in the
[VICE manual for integrating your own tools and apps](https://cyverse-visual-interactive-computing-environment.readthedocs-hosted.com/en/latest/developer_guide/building.html).