https://github.com/marlycormar/rocker_with_docker-compose
Rocker with docker-compose
https://github.com/marlycormar/rocker_with_docker-compose
docker docker-compose r rocker rstudio tidyverse
Last synced: about 2 months ago
JSON representation
Rocker with docker-compose
- Host: GitHub
- URL: https://github.com/marlycormar/rocker_with_docker-compose
- Owner: marlycormar
- License: other
- Created: 2019-04-30T19:00:08.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2020-07-28T23:18:07.000Z (almost 6 years ago)
- Last Synced: 2025-02-01T09:12:55.998Z (over 1 year ago)
- Topics: docker, docker-compose, r, rocker, rstudio, tidyverse
- Language: Dockerfile
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# About
Simple docker container that runs an R-script.
# Guide to create the container
- Clone locally a copy of this repo by running:
git clone git@github.com:marlycormar/rocker_with_docker-compose.git
- Spin-up the container in detached mode (-d):
docker-compose up -d
# The R-script
The `Test.R` file prints 'Hello World!' in the terminal and creates a dummy file named 'hello_world.txt'.
# Base docker image
The `Dockerfile` uses as its base image the `rocker/tidyverse` image which comes with `r-ver`, `rstudio`, `tidyverse`, and `verse`. For more info, please see the docker hub [rocker/tidyverse](https://hub.docker.com/r/rocker/tidyverse) or its corresponding github repo [rocker-versioned](https://github.com/rocker-org/rocker-versioned).
# Useful commands
- List the images:
docker images ls
- List the containers:
docker container ls
- `ssh` into the vm:
docker exec -it /bin/sh