This package is a template for building a Bioconductor workshop. The package includes Github actions to:
- Set up bioconductor/bioconductor_docker:devel on Github resources
- Install package dependencies for your package (based on the
DESCRIPTION
file) - Run
rcmdcheck::rcmdcheck
- Build a pkgdown website and push it to github pages
- Build a docker image with the installed package and dependencies and deploy to the Github Container Repository at the name
ghcr.io/gihub_user/repo_name
, all lowercase.
Package authors are primarily responsible for:
- Creating a landing site of their choosing for their workshops (a website). This website should be listed in the
DESCRIPTION
file as theURL
. - Creating a docker image that will contain workshop materials and the installed packages necessary to run those materials. The name of the resulting docker image, including "tag" if desired, should be listed in a non-standard tag,
DockerImage:
in theDESCRIPTION
file.
Both of those tasks can be accomplished using the Github actions included in this template package. The vignette accompanying this package describes how to accomplish both of these tasks.
For detailed instructions, see the How to build a workshop
article/vignette.
- A working docker image that contains the installed package and dependencies.
- An up-to-date
pkgdown
website at https://YOURUSERNAME.github.io/YOURREPOSITORYNAME/ - Docker image will be tagged with
latest
,sha-XXXXXX
whereXXXXXX
is the hash of the currentmaster
commit, andmaster
.
docker run -e PASSWORD=<choose_a_password_for_rstudio> -p 8787:8787 YOURDOCKERIMAGENAME
Once running, navigate to https://localhost:8787/ and then login with rstudio
:yourchosenpassword
.
To try with this repository docker image:
docker run -e PASSWORD=abc -p 8787:8787 ghcr.io/seandavi/buildabiocworkshop
NOTE: Running docker that uses the password in plain text like above exposes the password to others in a multi-user system (like a shared workstation or compute node). In practice, consider using an environment variable instead of plain text to pass along passwords and other secrets in docker command lines.
- https://seandavi.github.io/BuildABiocWorkshop
- A Docker image that you can run locally, in the cloud, or (usually) even as a singularity container on HPC systems.