Skip to content

Commit

Permalink
Merge pull request #621 from d3b-center/migbro-patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile and added provenance
  • Loading branch information
migbro authored Feb 17, 2025
2 parents c73ed44 + 8b794f0 commit 12f10f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: github_pat=${{ secrets.GITHUB_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ jobs:
uses: docker/login-action@v2
with:
registry: pgc-images.sbgenomics.com
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

username: ${{ secrets.CAVATICA_USERNAME }}
password: ${{ secrets.CAVATICA_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
provenance: false
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: github_pat=${{ secrets.GITHUB_TOKEN }}
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
FROM rocker/tidyverse:4.4.0
MAINTAINER [email protected]
LABEL maintainer="[email protected]"
WORKDIR /rocker-build/

ARG github_pat=$GITHUB_PAT

ENV GITHUB_PAT=$github_pat

# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -182,7 +178,7 @@ RUN R -e "options(repos = BiocManager::repositories())"

# Install BiocManager and the desired version of Bioconductor
RUN R -e "install.packages('BiocManager', dependencies=TRUE)"
RUN R -e "BiocManager::install(version = '3.19')"
RUN R -e "BiocManager::install(version = '3.19', ask = FALSE)"

# Install R packages
RUN R -e 'BiocManager::install(c( \
Expand Down Expand Up @@ -315,13 +311,12 @@ WORKDIR /home/rstudio/
# GISTIC installation
RUN mkdir -p gistic_install && \
cd gistic_install && \
wget -q ftp://ftp.broadinstitute.org/pub/GISTIC2.0/GISTIC_2_0_23.tar.gz && \
tar zxf GISTIC_2_0_23.tar.gz && \
rm -f GISTIC_2_0_23.tar.gz && \
wget -q https://anaconda.org/HCC/gistic2/2.0.23/download/linux-64/gistic2-2.0.23-0.tar.bz2 && \
tar jxf gistic2-2.0.23-0.tar.bz2 && \
rm -f gistic2-2.0.23-0.tar.bz2 && \
rm -rf MCR_Installer && \
chown -R rstudio:rstudio /home/rstudio/gistic_install && \
chmod 755 /home/rstudio/gistic_install
WORKDIR /rocker-build/

WORKDIR /home/rstudio/
# AWS CLI installation
Expand Down

0 comments on commit 12f10f0

Please sign in to comment.