Components of the SDAL infrastructure (in submodule form)
Porting submodules from: https://github.com/bi-sdal/dockerimages
This allows a package to be accessable to all users without separate compilling and installations.
- Go into the rpkgs container:
docker exec -it rpkgs bash
- Launch R:
R
- Install the package you want for everyone, e.g.,
install.packages('tidyverse')
Some R packages need a system library installed, e.g, geojsonio
needs the libjq
system library installed.
In this example, CENTOS needs the jq-devel
library installed.
- Go into the user's container, e.g.,
docker exec -it rstudio_chend bash
- Install the system library, e.g.,
yum install jq-devel
- Install the package of interest in R, e.g.,
install.packages('geojsonio')
If the above works, you can install the package in the image itself
- Do this on
snowmane
, the test server- Add the installation in the
mro
Dockerfile
, e.g.,yum install -y jq-devel && \
- Build the base
mro
,rpkgs
,rstudio
, andshiny
images (you can use thedbuild
command from the dockerimages setup) - Push the images to dockerhub,
docker push
docker push sdal/mro-c7sd_auth docker push sdal/rss-mro-c7sd_auth docker push sdal/rpkgs-mro-c7sd_auth docker push sdal/shy-mro-c7sd_auth
- Add the installation in the
- Do this on
lightfoot
, the production server- Pull the images from dockerhub,
docker pull
docker pull sdal/mro-c7sd_auth docker pull sdal/rss-mro-c7sd_auth docker pull sdal/rpkgs-mro-c7sd_auth docker pull sdal/shy-mro-c7sd_auth
- Start up the rstudio containers,
docker-compose -f rstudio-compose.yml up -d --no-recreate
- Pull the images from dockerhub,