-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity.centos6
81 lines (64 loc) · 2.23 KB
/
Singularity.centos6
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Bootstrap: docker
From: centos:centos6.9
%environment
## These are necessary since if they aren't included
## locale returns the wrong encoding
## this seems to fix it
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
%post
yum -y -q update
## Install sudo
#####################
yum -y -q install sudo
## This loads the community epel releases
#####################
yum -y -q install epel-release
curl 'https://setup.ius.io/' -o setup-ius.sh
sh setup-ius.sh
rm setup-ius.sh
yum -y -q update
## These are the RHL / centos / fedora development tools library
#####################
yum -y -q groupinstall "Development Tools"
## installs pyton 3.6
#####################
yum -y -q --enablerepo=ius install python36u-devel
## installs pip for python 3.6
#####################
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python3.6 get-pip.py
rm get-pip.py
## Install library dependencies
#####################
## these are all required by devtools
yum install -y -q libxml2-devel
yum install -y -q libcurl-devel
yum install -y -q openssl-devel
yum install -y -q libssh2-devel
## required for the image packages
yum install -y -q libpng-devel
yum install -y -q libjpeg-turbo-devel
## install R-devel
#####################
yum -y -q --enablerepo=ius install R-devel
## Install pip dependencies
#####################
## These are required for keras and tensorflow
sudo pip3 -q install virtualenv
sudo pip3 -q install tensorflow
sudo pip3 -q install keras
## install R packages
#####################
## This isn't good. It's the only way I could supress an annoying warning
## just makes the missing documentation directory
sudo mkdir /usr/share/doc/R-3.5.2/html
## Install some core R packages
sudo R -e 'install.packages("devtools", repos="http://cran.rstudio.com/", quiet = TRUE)'
#sudo R -e 'install.packages("tidyverse",repos="http://cran.rstudio.com/", quiet = TRUE)'
## These seem to be needed
#yum -y -q update
#yum -y -q install -y libpython-dev
#yum -y -q install -y libpython3-dev
## installing R keras
sudo R -e 'devtools::install_github("rstudio/keras", quiet = TRUE, args = "--no-html", build_vignettes = FALSE)'