-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcentos7-R.def
More file actions
27 lines (21 loc) · 834 Bytes
/
centos7-R.def
File metadata and controls
27 lines (21 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
BootStrap: yum
OSVersion: 7
MirrorURL: https://www.mirrorservice.org/sites/mirror.centos.org/%{OSVERSION}/os/$basearch/
UpdateURL: https://www.mirrorservice.org/sites/mirror.centos.org/%{OSVERSION}/updates/$basearch/
Include: yum
%post
echo "##### Installing Development Tools YUM group #####"
yum -y groupinstall "Development Tools"
yum install -y wget git binutils binutils-devel cmake gcc gcc-gfortran gcc-c++ libgfortran readline readline-devel bzip2 bzip2-devel xz xz-libs lzma xz-devel xz-lzma-compat pcre pcre-devel libcurl libcurl-devel make
echo "##### getting the R code #####"
mkdir /tmp/R-tmp
cd /tmp/R-tmp
wget https://cran.r-project.org/src/base/R-latest.tar.gz
tar zxf R-latest.tar.gz
cd R-*
./configure --enable-R-shlib --with-x=no
make
make install
%runscript
echo "##### Loading R #####"
exec R