/docker-demo

Demo about using Docker Containers for Reproducible Resarch

Primary LanguageHTMLMIT LicenseMIT

docker-demo

Purpose

Illustrate few use cases about using Docker Containers for Data Science and Reproducible Research

Advantages:

  • Portability
  • Reproducibility
  • Automated builds

Disadvantages:

  • Persistent Data Storage
  • GUI

Examples of Dockerfiles

Docker compose

Service to run multi container applications:

Useful commands on Docker compose

  • Check version: docker-compose version
  • Start service: docker-compose up - must be in the same folder as docker-compose.yml file
  • Stop service: docker-compose down
  • Command to run docker compose file: docker-compose up -d
  • Command to check all processes: docker ps
  • ... scale a service: docker-compose up -d --scale

Useful resources

Use r with docker general info ⇒ this is just amazing tutorial!!! https://ropenscilabs.github.io/r-docker-tutorial/

Run R script in the docker container: https://www.r-bloggers.com/running-your-r-script-in-docker/