Creates a docker image using GitHub Actions, based on rocker/geospatial with additional R packages and their system dependencies installed.
Github actions is used to build the docker image and push this to Docker Hub. The image tag is a concatenation of the original rocker/geospatial image tag with the first 7 characters for the commit in this GitHub repository, from which the image was built. For example, the tag name 4.3-be9be18 would indicate that image rocker/geospatial:4.3 was used in commit be9be18
See also:
- rocker-versioned2 GitHub README for comparison of
r-verwithr-baserocker images. - Rocker Project website for details on various image options.
- Pull image with
docker pull rmgpanw/rwd:<TAG> - Open a terminal in the directory to be bind mounted and launch container with (changing 'password' to something more secure):
project_dir=$(pwd)
docker run -e PASSWORD=password \
--rm -p 8787:8787 \
-v ${project_dir}:/home/rstudio/my-project \
rmgpanw/rwd:<TAG>
- Open a browser window with
localhost:8787and login to RStudio with username 'rstudio' and the password set in the previous step - To run Jupyter Lab use
jupyter lab --ip=0.0.0.0 --allow-root --no-browser, which uses port8888