From 891a6b6385c0683672e72925247d08d7789ec5a9 Mon Sep 17 00:00:00 2001 From: bschilder Date: Thu, 21 Dec 2023 16:21:18 -0500 Subject: [PATCH] Bump version for Bioc 3.19 --- .github/workflows/rworkflows.yml | 2 +- DESCRIPTION | 2 +- NEWS.md | 7 ++++ vignettes/docker.Rmd | 66 ++++++++++++++++++++------------ 4 files changed, 50 insertions(+), 27 deletions(-) diff --git a/.github/workflows/rworkflows.yml b/.github/workflows/rworkflows.yml index 14e80f3..53e93a5 100644 --- a/.github/workflows/rworkflows.yml +++ b/.github/workflows/rworkflows.yml @@ -26,7 +26,7 @@ jobs: bioc: devel r: auto cont: ghcr.io/bioconductor/bioconductor_docker:devel - rspm: https://packagemanager.rstudio.com/cran/__linux__/latest/release + rspm: ~ - os: macOS-latest bioc: release r: auto diff --git a/DESCRIPTION b/DESCRIPTION index 00daa87..00b196e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: orthogene Type: Package Title: Interspecies gene mapping -Version: 1.7.3 +Version: 1.9.1 Authors@R: c( person(given = "Brian", diff --git a/NEWS.md b/NEWS.md index 30507f7..f204ea1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,10 @@ +# orthogene 1.9.1 + +## New features + +* Bump version for Bioc 3.19. +* Use GHCR instead of Dockerhub, update vignette accordingly. + # orthogene 1.7.3 ## New features diff --git a/vignettes/docker.Rmd b/vignettes/docker.Rmd index bc46719..e191374 100644 --- a/vignettes/docker.Rmd +++ b/vignettes/docker.Rmd @@ -1,35 +1,50 @@ --- -title: "Docker/Singularity Containers" -author: "

Authors: `r auths <- eval(parse(text = gsub('person','c',read.dcf('../DESCRIPTION', fields = 'Authors@R'))));paste(auths[names(auths)=='given'],auths[names(auths)=='family'], collapse = ', ')`

" -date: "

Vignette updated: `r format( Sys.Date(), '%b-%d-%Y')`

" +title: Docker/Singularity Containers +author: '

Authors: `r auths <- eval(parse(text = gsub("person","c",read.dcf("../DESCRIPTION", + fields = "Authors@R"))));paste(auths[names(auths)=="given"],auths[names(auths)=="family"], + collapse = ", ")`

' +date: '

Vignette updated: `r format( Sys.Date(), "%b-%d-%Y")`

' output: - BiocStyle::html_document: -vignette: > - %\VignetteIndexEntry{docker} - %\usepackage[utf8]{inputenc} - %\VignetteEngine{knitr::rmarkdown} + BiocStyle::html_document: + md_extensions: -autolink_bare_uris +params: + cont: + value: ghcr.io/neurogenomics/orthogene + docker_registry: + value: ghcr.io + docker_org: + value: neurogenomics +vignette: | + %\VignetteIndexEntry{docker} + %\usepackage[utf8]{inputenc} + %\VignetteEngine{knitr::rmarkdown} --- ```{r setup, include=FALSE} #### Package name #### -pkg <- read.dcf("../DESCRIPTION", fields = "Package")[1] -library(pkg, character.only = TRUE) +PKG <- read.dcf("../DESCRIPTION", fields = "Package")[1] +library(PKG, character.only = TRUE) ## Docker containers must be lowercase -pkg <- tolower(pkg) +pkg <- tolower(PKG) #### Username of DockerHub account #### -docker_user <- "neurogenomicslab" +docker_org <- params$docker_org +docker_registry <- params$docker_registry +cont <- params$cont +docker_url <- if(grepl("ghcr.io",docker_registry)){ + paste("https://ghcr.io",cont,sep="/") +} else { + paste("https://hub.docker.com/repository/docker",docker_org,pkg,sep="/") +} + ``` -# DockerHub +# Installation -`r pkg` is now available via -[DockerHub](https://hub.docker.com/repository/docker/`r docker_user`/`r pkg`) +`r PKG` is now available via [`r docker_registry`](`r docker_url`) as a containerised environment with Rstudio and all necessary dependencies pre-installed. -## Installation - ## Method 1: via Docker First, [install Docker](https://docs.docker.com/get-docker/) @@ -39,7 +54,7 @@ Create an image of the [Docker](https://www.docker.com/) container in command line: ``` -docker pull `r docker_user`/`r pkg` +docker pull `r cont` ``` Once the image has been created, you can launch it with: @@ -51,8 +66,8 @@ docker run \ -e PASSWORD="" \ -v ~/Desktop:/Desktop \ -v /Volumes:/Volumes \ - -p 8787:8787 \ - `r docker_user`/`r pkg` + -p 8900:8787 \ + `r cont` ``` ### NOTES @@ -62,25 +77,26 @@ docker run \ * The `-d` ensures the container will run in "detached" mode, which means it will persist even after you've closed your command line session. * The username will be *"rstudio"* by default. -* Optionally, you can also install the [Docker Desktop](https://www.docker.com/products/docker-desktop) +* Optionally, you can also install the [Docker Desktop](https://www.docker.com/products/docker-desktop/) to easily manage your containers. ## Method 2: via Singularity If you are using a system that does not allow Docker (as is the case for many institutional computing clusters), -you can instead [install Docker images via Singularity](https://sylabs.io/guides/2.6/user-guide/singularity_and_docker.html). +you can instead [install Docker images via Singularity](https://docs.sylabs.io/guides/2.6/user-guide/singularity_and_docker.html). ``` -singularity pull docker://`r docker_user`/`r pkg` +singularity pull docker://`r cont` ``` +For troubleshooting, see the [Singularity documentation](https://docs.sylabs.io/guides/latest/user-guide/singularity_and_docker.html#github-container-registry). -## Usage +# Usage Finally, launch the containerised Rstudio by entering the following URL in any web browser: -*http://localhost:8787/* +*http://localhost:8900/* Login using the credentials set during the Installation steps.