Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jeksterslab/docker-bayes


https://github.com/jeksterslab/docker-bayes

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

jeksterslab/bayes
================
Ivan Jacob Agaloos Pesigan
2024-09-02

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

## Description

Docker and Apptainer/Singularity containers for `R` projects based on
the [Rocker Project](https://rocker-project.org/) with packages for
Bayesian analysis.

## 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/bayes) 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 `bayes-YEAR-MM-DD-HHMMSSMS`. Note that
`bayes-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/bayes
```

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

- username: rstudio
- password: yourpassword

## Apptainer Shell

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

``` bash
apptainer shell bayes-YEAR-MM-DD-HHMMSSMS.sif
```