Run ReLTER in a Docker container
Paolo Tagliolato
Source:vignettes/rocker_ReLTER.Rmd
rocker_ReLTER.Rmd
rocker_ReLTER
docker image for ReLTER package (https://github.com/ropensci/ReLTER)
Install a different branch of ReLTER package
Edit the addReLTER.sh script and modify the last line, using the name of your preferred branch as the ref= parameter value:
R -e "devtools::install_github('https://github.com/ropensci/ReLTER',ref = '<branchName>',dependencies = FALSE)"
Usage
Run locally on port 8080 (change port as you like). You can change “yourpasswordW with the password you prefer.
docker run -d -e PASSWORD=yourpassword -p 8080:8787 rocker_relter
Open browser at localhost:8080 and login with
user: rstudio
password: youpassword
Preserve your work (use a docker volume)
When you stop a docker container, the files created within it are lost. In order to preserve your work across different runs, link a local volume (in this example, the current working directory, $(pwd)) to the container:
docker run -d -v $(pwd):/home/rstudio -e PASSWORD=yourpassword -p 8080:8787 rocker_relter