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