Skip to content

Commit

Permalink
Per #226, manually install gsl version 2.5 so that the gsl R package …
Browse files Browse the repository at this point in the history
…will install correctly. Also, install the reticulate R package.
  • Loading branch information
JohnHalleyGotway committed Dec 1, 2020
1 parent 825bc2c commit 32f46ab
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,24 @@ RUN yum -y update \
#
# Install required packages
#
RUN yum -y install wget tar git ant java R gsl-devel mysql ksh \
RUN yum -y install wget tar git ant java R mysql ksh \
&& rm -rf /var/cache/yum/* \
&& yum clean all

#
# Install gsl-2.5 on which the R gsl package depends.
# The centos7 gal package is too old (version 1.5).
#
RUN echo "Compiling gsl-2.5" \
&& curl -SL http://gnu.askapache.com/gsl/gsl-2.5.tar.gz | tar zxC /lib \
&& cd /lib/gsl-2.5 \
&& ./configure --prefix=/usr --libdir=/usr/lib64 >& configure.log \
&& make >& make.log \
&& make install >& make_install.log

#
# Setup default cran repo
#
RUN echo "r <- getOption('repos'); r['CRAN'] <- 'http://cran.us.r-project.org'; options(repos = r);" > ~/.Rprofile

#
Expand All @@ -75,7 +88,8 @@ RUN Rscript -e "install.packages('boot')" \
&& Rscript -e "install.packages('plotrix')" \
&& Rscript -e "install.packages('gsl')" \
&& Rscript -e "install.packages('data.table')" \
&& Rscript -e "install.packages('verification')"
&& Rscript -e "install.packages('verification')" \
&& Rscript -e "install.packages('reticulate')"

#
# Install Tomcat
Expand Down

0 comments on commit 32f46ab

Please sign in to comment.