Skip to content

Commit

Permalink
adds rstudio container
Browse files Browse the repository at this point in the history
  • Loading branch information
Geert van Geest committed Dec 12, 2024
1 parent aa0d2f8 commit 3137217
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 10 deletions.
44 changes: 34 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'v*.*'

jobs:
docker:
docker-vscode:
runs-on: ubuntu-latest
steps:
-
Expand All @@ -24,13 +24,6 @@ jobs:
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{major}}.{{minor}}
# -
# name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v3
Expand All @@ -43,7 +36,38 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
context: ./Docker
context: ./Docker/vscode
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
docker-rstudio:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
geertvangeest/cancer-variants-rstudio
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{major}}.{{minor}}
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
context: ./Docker/rstudio
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

5 changes: 5 additions & 0 deletions Docker/rstudio/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM rocker/rstudio:4.4.2

RUN apt-get update && apt-get install -y libz-dev

RUN install2.r BiocManager tidyverse ggplot2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3137217

Please sign in to comment.