Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Astrocyte Container Images
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Astrocyte
Astrocyte Container Images
Commits
0be5f8ca
Commit
0be5f8ca
authored
2 years ago
by
Peng Lian
Browse files
Options
Downloads
Patches
Plain Diff
Add R/3.4.4
parent
774dbff6
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/3.4.4/Dockerfile
+74
-0
74 additions, 0 deletions
R/3.4.4/Dockerfile
R/3.4.4/Rprofile.site
+2
-0
2 additions, 0 deletions
R/3.4.4/Rprofile.site
with
76 additions
and
0 deletions
R/3.4.4/Dockerfile
0 → 100644
+
74
−
0
View file @
0be5f8ca
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"]
This diff is collapsed.
Click to expand it.
R/3.4.4/Rprofile.site
0 → 100644
+
2
−
0
View file @
0be5f8ca
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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment