rbbt-image 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f5da609f8fa4562cab537c772c2d5ab54ad9ceb
|
4
|
+
data.tar.gz: 572c62f906ca0362b81dee105a78d656a565ab9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6bb4c57a895feb6685d24d54d102acdbfda92587d97d151e82d4b1f6ddd9c032119092aa62f0a74fd098bf3beed1b1e0ee483d4d67abcf63ae53b9890328416
|
7
|
+
data.tar.gz: 0d595c94b87f1f460ffb56de9ec9dfc6ec1aa3a69a0a61f236ccd4d6f2eaa9f2d871463f7d2ea3e1b4389456337f5ce4433284effc1f5d88109f92930a25a92c
|
@@ -28,6 +28,8 @@ $ #{$0} [options]
|
|
28
28
|
-ss--skip_base_system Skip base system installation
|
29
29
|
-st--skip_tokyocabinet Skip tokyocabinet setup installation
|
30
30
|
-sr--skip_ruby Skip ruby setup installation
|
31
|
+
-sp--skip_perl Skip perl setup installation
|
32
|
+
-spy--skip_python Skip python setup installation
|
31
33
|
-sg--skip_gem Skip ruby gem installation
|
32
34
|
-sR--skip_R Skip R setup
|
33
35
|
-su--skip_user_setup Skip user setup
|
@@ -68,6 +70,8 @@ USER = options[:user] || 'rbbt'
|
|
68
70
|
SKIP_BASE_SYSTEM = options[:skip_base_system]
|
69
71
|
SKIP_TOKYOCABINET= options[:skip_tokyocabinet]
|
70
72
|
SKIP_RUBY = options[:skip_ruby]
|
73
|
+
SKIP_PERL = options[:skip_perl]
|
74
|
+
SKIP_PYTHON = options[:skip_python]
|
71
75
|
R_CUSTOM = options[:R_custom]
|
72
76
|
SKIP_R = options[:skip_R]
|
73
77
|
SKIP_BOOT = options[:skip_bootstrap]
|
@@ -150,6 +154,7 @@ else
|
|
150
154
|
end
|
151
155
|
}
|
152
156
|
|
157
|
+
|
153
158
|
echo "3.1. Setting up gems"
|
154
159
|
#{
|
155
160
|
if not SKIP_GEM
|
@@ -159,6 +164,24 @@ else
|
|
159
164
|
end
|
160
165
|
}
|
161
166
|
|
167
|
+
echo "4 Setting up other stuff"
|
168
|
+
echo "4.1 Setting up perl"
|
169
|
+
#{
|
170
|
+
if not SKIP_PERL
|
171
|
+
File.read(script_dir + 'perl_setup.sh')
|
172
|
+
else
|
173
|
+
"echo SKIPPED\necho"
|
174
|
+
end
|
175
|
+
}
|
176
|
+
|
177
|
+
echo "4.2 Setting up python"
|
178
|
+
#{
|
179
|
+
if not SKIP_PYTHON
|
180
|
+
File.read(script_dir + 'python_setup.sh')
|
181
|
+
else
|
182
|
+
"echo SKIPPED\necho"
|
183
|
+
end
|
184
|
+
}
|
162
185
|
EOF
|
163
186
|
|
164
187
|
provision_script +=<<-EOF
|
@@ -346,7 +369,7 @@ EOF
|
|
346
369
|
|
347
370
|
puts "RUN"
|
348
371
|
puts "==="
|
349
|
-
singularity_size = options[:singularity_size] ||
|
372
|
+
singularity_size = options[:singularity_size] || 3072
|
350
373
|
cmd_create = "singularity create -s #{singularity_size} #{singularity_image}"
|
351
374
|
cmd_boot = "singularity bootstrap #{singularity_image} '#{dir["singularity_bootstrap"]}'"
|
352
375
|
puts cmd_create
|
@@ -0,0 +1,15 @@
|
|
1
|
+
wget "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" -O /tmp/miniconda.sh
|
2
|
+
bash /tmp/miniconda.sh -b -p /opt/miniconda3
|
3
|
+
|
4
|
+
[ -d /opt/bin/conda ] || mkdir -p /opt/bin/conda
|
5
|
+
ln -s /opt/miniconda3/bin/conda /opt/bin/conda
|
6
|
+
|
7
|
+
conda create --yes -n python3 python=3.6.1 pip
|
8
|
+
rm -Rf /opt/miniconda3/pkgs
|
9
|
+
conda create --yes -n python2 python=2.7 pip
|
10
|
+
rm -Rf /opt/miniconda3/pkgs
|
11
|
+
|
12
|
+
echo "# Python conda " >> /etc/rbbt_environment
|
13
|
+
echo 'export PATH="/opt/bin/:/opt/miniconda3/envs/python3/bin/:$PATH"' >> /etc/rbbt_environment
|
14
|
+
|
15
|
+
source /etc/rbbt_environment
|
@@ -5,9 +5,8 @@
|
|
5
5
|
|
6
6
|
# Basic system requirements
|
7
7
|
# -------------------------
|
8
|
+
apt-get -y update
|
8
9
|
apt-get -y install software-properties-common
|
9
|
-
add-apt-repository ppa:george-edison55/cmake-3.x
|
10
|
-
apt-get -y install cmake
|
11
10
|
|
12
11
|
apt-get -y update
|
13
12
|
apt-get -y update
|
@@ -19,12 +18,18 @@ apt-get -y install \
|
|
19
18
|
openjdk-8-jdk \
|
20
19
|
libcairo2 libcairo2-dev r-base-core r-base-dev r-cran-rserve liblzma5 liblzma-dev libcurl4-openssl-dev \
|
21
20
|
build-essential zlib1g-dev libssl-dev libyaml-dev libffi-dev \
|
22
|
-
python3 \
|
21
|
+
python3 python \
|
22
|
+
tcsh gawk \
|
23
23
|
libtbb-dev
|
24
24
|
|
25
|
+
add-apt-repository ppa:george-edison55/cmake-3.x
|
26
|
+
apt-get -y update
|
27
|
+
apt-get -y update
|
28
|
+
apt-get -y install cmake
|
29
|
+
|
25
30
|
# For paradigm/libdai
|
26
31
|
apt-get -y install \
|
27
|
-
libgmp-dev libboost-
|
32
|
+
libgmp-dev libboost-all-dev
|
28
33
|
|
29
34
|
# This link was broken for some reason
|
30
35
|
rm /usr/lib/R/bin/Rserve
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|
@@ -45,6 +45,8 @@ files:
|
|
45
45
|
- share/provision_scripts/bootstrap.sh
|
46
46
|
- share/provision_scripts/gem_setup.sh
|
47
47
|
- share/provision_scripts/hacks.sh
|
48
|
+
- share/provision_scripts/perl_setup.sh
|
49
|
+
- share/provision_scripts/python_setup.sh
|
48
50
|
- share/provision_scripts/ruby_setup.sh
|
49
51
|
- share/provision_scripts/tokyocabinet_setup.sh
|
50
52
|
- share/provision_scripts/ubuntu_setup.sh
|