Skip to content

Commit

Permalink
Add docker builds for bioc and python only image (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored Jul 23, 2024
1 parent 7a41620 commit 134348c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,30 @@ on:
workflow_dispatch:

jobs:
publish_docker:
publish_docker_pythononly:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ github.repository }}/builder:${{ github.ref_name }}
name: ${{ github.repository }}/pythononly:${{ github.ref_name }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: Dockerfile.pythononly

publish_docker_bioc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ github.repository }}/bioc:${{ github.ref_name }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: Dockerfile.bioc
17 changes: 17 additions & 0 deletions Dockerfile.bioc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM jupyter/r-notebook:r-4.3.1

USER root

RUN apt update -qq
RUN apt install python3-dev build-essential -y

# install bioc deps from @almahmoud
RUN curl -O https://raw.githubusercontent.com/Bioconductor/bioconductor_docker/devel/bioc_scripts/install_bioc_sysdeps.sh
RUN bash install_bioc_sysdeps.sh 3.18

# update conda
RUN conda update -y -c conda-forge libsqlite

# install bioc deps from @almahmoud
RUN pip install -r <(curl -s https://raw.githubusercontent.com/BiocPy/BiocWorkshop2024/master/requirements.txt)
RUN curl -s https://raw.githubusercontent.com/BiocPy/BiocWorkshop2024/master/rpackages.R | Rscript -
File renamed without changes.

0 comments on commit 134348c

Please sign in to comment.