Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build fixes #2

Merged
merged 7 commits into from
Dec 8, 2023
Merged
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
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ RUN apt-get -y -qq install \
imagemagick libmagick++-dev \
texlive-base texlive-latex-recommended texlive texlive-latex-extra texlive-extra-utils texlive-fonts-extra \
fonts-roboto \
r-base r-base-dev r-cran-devtools r-cran-tidyverse r-cran-extradistr \
r-base r-base-dev r-cran-devtools \
r-cran-tidyverse r-cran-extradistr \
r-cran-rcpp r-cran-rcppgsl r-cran-rcppparallel \
r-cran-segmented r-cran-pixmap r-cran-ape r-cran-seqinr r-cran-ade4 \
&& apt-get clean
Expand All @@ -29,8 +30,10 @@ RUN apt-get -y -qq install \
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 "for (lib in c( 'Rfast', 'LaplacesDemon', 'kmer', 'phylogram', 'aphid', 'insect' )) { install.packages(lib, dependencies=TRUE); library(lib, character.only=TRUE) }"
# Install necessary R dependencies for reconstructR that don't have apt packages
RUN R -e "for (lib in c( 'LaplacesDemon', 'kmer', 'phylogram', 'aphid', 'insect' )) { install.packages(lib, dependencies=TRUE); library(lib, character.only=TRUE) }"
# Rfast in CRAN is broken, install from github
RUN R -e "devtools::install_github('RfastOfficial/Rfast', dependencies=TRUE); library(Rfast)"

# 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
Expand Down
Loading