Skip to content

Commit

Permalink
added docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanGeest committed Apr 7, 2021
1 parent 6bb7381 commit bb4c400
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 11 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/push_jupyter_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
path: Docker/jupyter
repository: sib-swiss/ngs-longreads-training/ngs-longreads-jupyter
tag_with_ref: true
20 changes: 20 additions & 0 deletions .github/workflows/push_rstudio_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
path: Docker/rstudio
repository: sib-swiss/ngs-longreads-training/ngs-longreads-rstudio
tag_with_ref: true
19 changes: 9 additions & 10 deletions Docker/jupyter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM jupyter/minimal-notebook
FROM jupyter/minimal-notebook:9fe5186aba96

USER root
RUN cat /etc/skel/.bashrc >> /etc/bash.bashrc
Expand All @@ -7,24 +7,23 @@ USER $NB_UID
RUN rm -r /home/jovyan/work

RUN /opt/conda/bin/conda install -y --quiet -c bioconda \
samtools \
minimap2 \
fastqc \
pbmm2 \
parallel
samtools=1.10 \
minimap2=2.17 \
fastqc=0.11.9 \
pbmm2=1.4.0 \
parallel=20170422

RUN parallel --citation <<< 'will cite'

# install nanoplot with pip (with conda gives errors)
RUN pip install NanoPlot

# install flair environment from .yml file
COPY flair_env.yml ./

RUN /opt/conda/bin/conda env create -f flair_env.yml

RUN rm flair_env.yml

# install pacbio environment from .yml file
COPY pacbio_env.yml ./

RUN /opt/conda/bin/conda env create -f pacbio_env.yml

RUN rm pacbio_env.yml
5 changes: 4 additions & 1 deletion Docker/rstudio/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM rocker/rstudio
FROM rocker/rstudio:4.0.3

# non interactive for installing dependencies
ENV DEBIAN_FRONTEND=noninteractive

# installing dependencies for DESeq2 and rmarkdown
RUN apt-get update
RUN apt-get install -y libz-dev
RUN apt-get install -y libxml2-dev
RUN apt-get install -y libxt-dev

# copy and run script to install packages
COPY install_packages.R ./

RUN Rscript ./install_packages.R

0 comments on commit bb4c400

Please sign in to comment.