Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install only from BiocManager, update vignette #13

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/basic_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
options(repos = c(CRAN = "https://cran.r-project.org"))
BiocManager::repositories()
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories())
BiocManager::install("seandavi/BuildABiocWorkshop2020", dependencies = TRUE, update = TRUE, ask = FALSE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ WORKDIR /home/rstudio

COPY --chown=rstudio:rstudio . /home/rstudio/

RUN Rscript -e "devtools::install('.', dependencies=TRUE, build_vignettes=TRUE, repos = BiocManager::repositories())"
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); BiocManager::install('seandavi/BuildABiocWorkshop2020', dependencies=TRUE, build_vignettes=TRUE, update = TRUE, ask = FALSE)"
28 changes: 28 additions & 0 deletions vignettes/HOWTO_BUILD_WORKSHOP.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ desired Docker image name**. In other words, this section of the
github actions file will build and push to dockerhub the image with
this name.

**NOTE**: Dockerhub names must be all lowercase, can be two to 255
characters, and can only contain lowercase letters, numbers or `-` and
`_` (https://docs.docker.com/docker-hub/repos/).


```yaml
- uses: docker/build-push-action@v1
Expand All @@ -64,6 +68,30 @@ this name.
tags: latest
```

Also change the repo name here (here it is case-insensitive):

```yaml
- name: Install dependencies
run: |
options(repos = c(CRAN = "https://cran.r-project.org"))
BiocManager::repositories()
BiocManager::install("seandavi/BuildABiocWorkshop2020", dependencies = TRUE, update = TRUE, ask = FALSE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}
```

### Edit `Dockerfile`

Change `seandavi/BuildABiocWorkshop2020` to the username/reponame of
your GitHub repo, to install your workshop and all its
Depends/Imports/Suggests and their dependencies into the Docker
container for your workshop.

You can also choose to build on a different base Bioconductor Docker
image. For example, to build on release 3.11 instead of devel, change
`FROM bioconductor/bioconductor_docker:devel` to `FROM
bioconductor/bioconductor_docker:RELEASE_3_11`.

### Add "secrets" to github repo

Secrets are encrypted environment variables that you create in a
Expand Down