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
41af1157
Commit
41af1157
authored
1 year ago
by
Peng Lian
Browse files
Options
Downloads
Patches
Plain Diff
Update R/3.5.1
parent
510299da
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/3.5.1/Dockerfile
+18
-5
18 additions, 5 deletions
R/3.5.1/Dockerfile
R/3.5.1/Rprofile.site
+2
-1
2 additions, 1 deletion
R/3.5.1/Rprofile.site
with
20 additions
and
6 deletions
R/3.5.1/Dockerfile
+
18
−
5
View file @
41af1157
...
...
@@ -14,9 +14,8 @@ ENV http_proxy="${http_proxy}" \
no_proxy="${no_proxy}"
# Configure default locale
ENV
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
R_VERSION=3.5.1
ENV
LC_ALL=en_US.UTF-8
ENV
LANG=en_US.UTF-8
# Enable EPEL and install dependencies for building R packages
RUN
mkdir
/astrocyte /apps /home1 /home2 /work /project /archive /cm /programs
&&
\
...
...
@@ -49,7 +48,7 @@ RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs &
libtiff-devel
\
fftw-devel
\
freetype-devel
\
cmake
\
cmake
3
\
librsvg2-devel
\
mariadb-devel
\
pandoc
\
...
...
@@ -64,14 +63,28 @@ RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs &
libjpeg-turbo-devel \
&& \
\
ln -s /usr/bin/cmake3 /usr/bin/cmake && \
yum clean all
# Install R
ENV
R_VERSION=3.5.1
# Enable EPEL and install dependencies for building R packages
RUN
yum
-y
update
&&
\
yum
install
-y
epel-release
&&
\
yum
-y
install
R
&&
\
rpm
-e
--nodeps
R
&&
\
# Install R and packages
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
# Install R libraries and list the installed
RUN
R
-e
"install.packages(c('BiocManager', 'shiny', 'shinyFiles', 'devtools'), repos='https://cloud.r-project.org')"
RUN
R
-e
"as.data.frame(installed.packages()[,c(1,3:4)])"
# set default CRAN mirror
COPY
Rprofile.site /opt/R/${R_VERSION}/lib/R/etc/
...
...
This diff is collapsed.
Click to expand it.
R/3.5.1/Rprofile.site
+
2
−
1
View file @
41af1157
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
options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')
options(Ncpus = 6)
\ 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