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
6f261f76
Commit
6f261f76
authored
2 years ago
by
Peng Lian
Browse files
Options
Downloads
Patches
Plain Diff
Add R-4.2.2
parent
ba40b7a6
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/4.2.2/Dockerfile
+88
-0
88 additions, 0 deletions
R/4.2.2/Dockerfile
R/4.2.2/Rprofile.site
+2
-0
2 additions, 0 deletions
R/4.2.2/Rprofile.site
with
90 additions
and
0 deletions
R/4.2.2/Dockerfile
0 → 100644
+
88
−
0
View file @
6f261f76
FROM
centos:centos7
LABEL
CONTAINER_VERSION="0.0.2" \
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}"
# Configure default locale
ENV
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
R_VERSION=4.2.2
# Enable EPEL and install dependencies for building R packages
RUN
mkdir
/astrocyte /apps /home1 /home2 /work /project /archive /cm /programs
&&
\
yum
-y
update
&&
\
yum
install
-y
epel-release
&&
\
yum groupinstall
-y
"Development Tools"
&&
\
yum clean all
# Enable EPEL and install dependencies for building R packages
RUN
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
\
# required by 'devtools' of R
harfbuzz-devel \
fribidi-devel \
libjpeg-turbo-devel \
&& \
yum clean all
# Install R and packagesRUN yum -y update && \
RUN
yum
-y
update
&&
\
yum
install
-y
epel-release
&&
\
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', 'shiny', 'shinyFiles', 'devtools'), 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/4.2.2/Rprofile.site
0 → 100644
+
2
−
0
View file @
6f261f76
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