Skip to content
Snippets Groups Projects
Commit 0be5f8ca authored by Peng Lian's avatar Peng Lian
Browse files

Add R/3.4.4

parent 774dbff6
Branches
No related merge requests found
FROM centos:centos7
LABEL CONTAINER_VERSION="0.0.1" \
AUTHOR="Peng Lian" \
EMAIL="biohpc-help@utsouthwestern.edu"
# build-time varialbes
ARG http_proxy=http://proxy.swmed.edu:3128/
ARG https_proxy=http://proxy.swmed.edu:3128/
ARG no_proxy="*.swmed.edu,*.swmed.org,*.utsouthwestern.edu,localhost,127.0.0.1/8"
ENV http_proxy="${http_proxy}" \
https_proxy="${https_proxy}" \
no_proxy="${no_proxy}"
# Enable EPEL and install dependencies for building R packages
RUN mkdir /home2 /work /project /archive && \
yum -y update && \
yum install -y epel-release && \
yum groupinstall -y "Development Tools" && \
yum install -y \
openssl \
openssl-devel \
libcurl \
libcurl-devel \
libpng-devel \
libxml2 \
libxml2-devel \
nlopt nlopt-devel \
boost \
boost-devel \
boost-system \
boost-filesystem \
boost-thread \
cairo-devel \
tcl-devel \
tk-devel \
wget \
python-devel \
gsl-devel \
udunits2-devel \
libpng-devel \
cairo-devel \
libtiff-devel \
fftw-devel \
freetype-devel \
cmake \
librsvg2-devel \
mariadb-devel \
pandoc \
pandoc-citeproc \
udunits-devel \
v8-314-devel \
zlib-devel \
texlive-latex
# Configure default locale
ENV LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
R_VERSION=3.4.4
# Install R and packages
RUN yum -y install https://cdn.rstudio.com/r/centos-7/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \
yum clean all && \
ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R && \
ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript && \
/usr/local/bin/R -e "install.packages(c('BiocManager'), repos='https://cloud.r-project.org')" && \
R --version
# set default CRAN mirror
COPY Rprofile.site /opt/R/${R_VERSION}/lib/R/etc/
# Default command
CMD ["R"]
options(repos = c(CRAN = 'https://cloud.r-project.org'), download.file.method = 'libcurl')
options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment