-
Notifications
You must be signed in to change notification settings - Fork 3
Docker
Sam Abbott edited this page Aug 31, 2020
·
4 revisions
First login into the GitHub package repository using your GitHub credentials (if you have not already done so) and then run the following:
# docker login docker.pkg.github.com
docker pull docker.pkg.github.com/epiforecasts/covid-us-forecasts/covid-us-forecasts:latest
docker tag docker.pkg.github.com/epiforecasts/covid-us-forecasts/covid-us-forecasts:latest covidusforecasts
To run the docker image run:
docker run -d -p 8787:8787 --name covidusforecasts -e USER=covidusforecasts -e PASSWORD=covidusforecasts covidusforecasts
The rstudio client can be found on port :8787 at your local machines ip. The default username:password is covidusforecasts:covidusforecasts, set the user with -e USER=username, and the password with - e PASSWORD=newpasswordhere. The default is to save the analysis files into the user directory.
To mount a folder (from your current working directory - here assumed to
be tmp
) in the docker container to your local system use the following
in the above docker run command (as given mounts the whole covidusforecasts
directory to tmp
).
--mount type=bind,source=$(pwd)/tmp,target=/home/covidusforecasts
To access the command line run the following:
docker exec -ti covidusforecasts bash