Skip to content

Commit

Permalink
Extend rstudio container
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Jan 10, 2025
1 parent 3491981 commit 4f9c9cc
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/build_rstudio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build RStudio Image

on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch: {} # Keep manual trigger without inputs

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Get latest Bioconductor version
id: version
run: |
LATEST_VERSION=$(curl "https://hub.docker.com/v2/repositories/bioconductor/bioconductor_docker/tags?page_size=100&page=1&ordering=last_updated" | jq '.results[].name' | tr -d '"' | sed 's/RELEASE_//g' | sed 's/_/./g'| grep -v '-' | grep '3.' | sort -Vr | head -1)
echo "BIOC_VERSION=$LATEST_VERSION" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
build-args: |
BIOC_VERSION=${{ steps.version.outputs.BIOC_VERSION }}
tags: |
ghcr.io/hubsingest/biocrstudio:${{ steps.version.outputs.BIOC_VERSION }}
ghcr.io/hubsingest/biocrstudio:latest
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ARG BIOC_VERSION
FROM ghcr.io/bioconductor/bioconductor:${BIOC_VERSION}
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
2 changes: 1 addition & 1 deletion scripts/hubsingest_launch_rstudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
spec:
containers:
- name: rstudio
image: ghcr.io/bioconductor/bioconductor:$BIOC_VERSION
image: ghcr.io/hubsingest/biocrstudio:$BIOC_VERSION
ports:
- containerPort: 8787
env:
Expand Down

0 comments on commit 4f9c9cc

Please sign in to comment.