Skip to content

Commit

Permalink
add failfast lines to R install packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Dec 8, 2023
1 parent e3ada70 commit 7c12d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ RUN locale-gen en_US.UTF-8
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

# Install necessary R dependencies
RUN R -e "install.packages(c( 'Rfast', 'LaplacesDemon', 'kmer', 'phylogram', 'aphid', 'insect' ), dependencies=TRUE)"
RUN R --vanilla -e "for (lib in c( 'Rfast', 'LaplacesDemon', 'kmer', 'phylogram', 'aphid', 'insect' )) { install.packages(lib, dependencies=TRUE); library(lib, character.only=TRUE) }"

# Install reconstructR R package -- invalidate cache any time github main branch updates
ADD https://api.github.com/repos/broadinstitute/reconstructR/git/refs/heads/main version.json
RUN R -e "devtools::install_github('broadinstitute/reconstructR', dependencies=TRUE, upgrade='never')"
RUN R --vanilla -e "devtools::install_github('broadinstitute/reconstructR', dependencies=TRUE, upgrade='never'); library(reconstructR)"

# Bash prompt
CMD ["/bin/bash"]

0 comments on commit 7c12d35

Please sign in to comment.