Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeksterslab/docker-dynr-rocker

A Docker container for R projects based on the Rocker Project with the dynr package.
https://github.com/jeksterslab/docker-dynr-rocker

Last synced: 15 days ago
JSON representation

A Docker container for R projects based on the Rocker Project with the dynr package.

Awesome Lists containing this project

README

        

jeksterslab/dynr-rocker
================
Ivan Jacob Agaloos Pesigan
2024-09-02

[![Make
Project](https://github.com/jeksterslab/docker-dynr-rocker/actions/workflows/make.yml/badge.svg)](https://github.com/jeksterslab/docker-dynr-rocker/actions/workflows/make.yml)
[![Docker and Apptainer Build and Push
\[amd64/arm64\]](https://github.com/jeksterslab/docker-dynr-rocker/actions/workflows/docker-apptainer-build-push-amd64-arm64.yml/badge.svg)](https://github.com/jeksterslab/docker-dynr-rocker/actions/workflows/docker-apptainer-build-push-amd64-arm64.yml)
[![Shell
Check](https://github.com/jeksterslab/docker-dynr-rocker/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/jeksterslab/docker-dynr-rocker/actions/workflows/shellcheck.yml)

## Description

Docker and Apptainer/Singularity containers for `R` projects based on
the [Rocker Project](https://rocker-project.org/) with the
[dynr](https://github.com/mhunter1/dynr) package.

## GitHub Actions

The `Docker and Apptainer Build and Push [amd64/arm64]` GitHub actions
workflow performs the following:

- Builds the Docker image specified by the `Dockerfile`.
- Pushes the image to
[DockerHub](https://hub.docker.com/r/jeksterslab/dynr-rocker) using
the tags `latest` and `date and time of build (YEAR-MM-DD-HHMMSSMS)`.
- Builds the Singularity Image File (SIF) using Apptainer based on the
Docker Hub image from the previous step.
- Creates a GitHub release named `dynr-rocker-YEAR-MM-DD-HHMMSSMS`. Note
that `dynr-rocker-YEAR-MM-DD-HHMMSSMS.zip` contains the SIF.

## Docker Container

To launch `Rstudio Server`, run the following.

``` bash
docker run --rm -ti -e PASSWORD=yourpassword -p 127.0.0.1:8787:8787 jeksterslab/dynr-rocker
```

Open `http://localhost:8787` on your web browser to launch
`Rstudio Server`.

- username: rstudio
- password: yourpassword

## Apptainer Shell

Download and unzip `dynr-rocker-YEAR-MM-DD-HHMMSSMS.zip` from the GitHub
release to extract `dynr-rocker-YEAR-MM-DD-HHMMSSMS.sif`.

``` bash
apptainer shell dynr-rocker-YEAR-MM-DD-HHMMSSMS.sif
```