The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
This vignette describes the Docker helper functions in
OmopStudyBuilder:
dockeriseStudy() builds a Docker image for your
studyrunRStudio() starts an interactive RStudio Server
session inside the imagerunStudy() runs your study script in automated mode
(streaming logs)stopStudy() stops containers started by
runRStudio()/runStudy()pushDockerImage() tags and pushes your image to Docker
HubAll Docker calls require Docker to be installed and the Docker daemon to be running.
dockeriseStudy() expects an renv.lock (and
renv activation files) in the directory you point it at. By default it
will also snapshot your dependencies before building.
# From the studyCode folder (or pass path=...)
dockeriseStudy(
image_name = "my-study",
path = "./studyCode",
useRStudio = FALSE
)If you want runRStudio(), build with an RStudio base
image:
If your renv.lock includes GitHub packages and you hit
GitHub rate limits during the build, pass a token:
runRStudio() runs the Docker image and opens a browser
to the RStudio Server URL. Results are written to
results_path on your host.
To pass runtime settings to the container, create a .env
file in your working directory and it will be used automatically (or
provide env_file = "path/to/.env").
runStudy() executes an R script in the container
(default codeToRun.R) and streams stdout/stderr to your
console.
Use stopStudy() to stop containers started by
runRStudio() and/or runStudy().
pushDockerImage() will tag
image_name:latest and push it to a Docker Hub
repository.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.