Repo for creating a docker images containing both python and R, for use in CI and as dev containers.
The following R-packages with their dependencies are installed in the conatainer image:
From CRAN:
- dplyr
- gausssuppression
- httpgd
- languageserver
- modsem
- shiny
- ssbtools
From GitHub:
- ssb-metodebiblioteket
- ssb-ssb-fellesr
The docker images are published as GitHub Packages on this page.
docker pull ghcr.io/statisticsnorway/docker-rpython-base:latest # Image for use in GitHub Actions
docker pull ghcr.io/statisticsnorway/docker-rpython-dev:latest # Latest dev-image
Both docker images are built and published when a tag starting with v
is pushed
to the repo. Example:
git tag # List existing tags, pick the next one
git tag -a v1.0.3 -m"Tagging docker image" # create new tag
git push --tags
From the root of the repo:
cd docker-base
docker build -t ghcr.io/statisticsnorway/docker-rpython-base:1.0 .
docker push ghcr.io/statisticsnorway/docker-rpython-base:1.0
From the root of the repo:
cd docker-dev
docker build -t ghcr.io/statisticsnorway/docker-rpython-dev:1.0 .
docker push ghcr.io/statisticsnorway/docker-rpython-dev:1.0