Skip to content
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
5 changes: 5 additions & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
source("renv/activate.R")

# auto-source functions
if (file.exists("functions/prepShinyCellModular.R")) {
source("functions/prepShinyCellModular.R")
}
29 changes: 29 additions & 0 deletions .github/workflows/build_push_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and push Docker image

on:
push:
branches: [main, bioc_envs]
workflow_dispatch:

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

- name: Login to GHCR
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: .
push: true
build-args: |
REPO_URL=https://github.com/${{ github.repository }}
tags: ghcr.io/${{ github.repository_owner }}/shinycellmodular:latest
38 changes: 38 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM condaforge/mambaforge:latest

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Australia/Melbourne

RUN apt-get update && apt-get install -y \
tzdata \
cmake \
libglpk-dev \
libhdf5-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN conda config --append channels conda-forge && \
conda config --append channels bioconda && \
mamba install -y \
r-arrow r-data.table r-dplyr r-dt bioconductor-edger \
r-ggdendro r-ggforce r-ggplot2 r-ggrepel r-gridextra \
r-hdf5r r-jsonlite bioconductor-limma r-magrittr \
r-patchwork r-plotly r-presto r-rcolorbrewer r-rcpp \
r-rsconnect r-seurat r-seuratobject r-shiny \
r-shinydashboard r-shinyjs r-shinywidgets r-sortable \
r-tidyverse r-factominer r-grimport r-xml r-devtools \
r-shinythemes \
&& mamba clean -afy

RUN Rscript -e "devtools::install_github('Simon-Leonard/FlexDotPlot')"
RUN Rscript -e "devtools::install_github('SGDDNB/ShinyCell')"
RUN Rscript -e "devtools::install_github('cwthom/shinyhelper')"

WORKDIR /app

ARG REPO_URL
RUN git clone ${REPO_URL} .

RUN echo 'R_PROFILE_USER=/app/.Rprofile' >> $(R RHOME)/etc/Renviron
RUN echo 'if (file.exists("/app/functions/prepShinyCellModular.R")) source("/app/functions/prepShinyCellModular.R")' > /app/.Rprofile
RUN echo 'if (file.exists("/app/functions/useShinyCellModular.R")) source("/app/functions/useShinyCellModular.R")' >> /app/.Rprofile
Loading