Skip to content

Container workshop as part of summer incubator program at MPIDR - 20240620

License

Notifications You must be signed in to change notification settings

estherden/grid-sample-containerized

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expanding the Lifespan of Software for Demographic Analysis with Containers: An Application of Spatial Sampling

Run this repository in a web browser using Binder. Push the button >> Binder

Files description

File Description
Dockerfile This text file defines which container image Binder needs to launch.
install.R This R script contains lines to install packages required for the analysis.
example.R This is the file with the example code we will run inside the container once it is launched.
[README.md] Readme file.

How to create a button to launch the repository in a container using Binder

This readme contains simple code for the "launch binder" button that you can see above. To view the source code of the readme, click this link. The code consists of two constant parts that instruct a web browser to open Binder and one part that is your username and repository name.:

Code Part Code Comments
Constant [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ Creates a button and points a web browser to Binder.
Change to your username and repository on GitHub e-kotov/grid-sample-containerized Specifies which repository to use for the container. The format is <github-username>/<repository-name>.
Constant /HEAD?urlpath=rstudio) Instructs Binder to use the main repository branch and to go to RStudio in the container.

For your projects, change the middle part of the code with / and concatenate everything into a single line. You get the code for the button for the README.md file for your repository, which is displayed by default whenever someone opens your repository on GitHub. Here's an example for the current repository:

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/e-kotov/grid-sample-containerized/HEAD?urlpath=rstudio)

About

Container workshop as part of summer incubator program at MPIDR - 20240620

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 70.6%
  • R 29.4%