rbbt-image 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/build_rbbt_provision_sh.rb +16 -15
- data/share/provision_scripts/R_packages.sh +2 -1
- data/share/provision_scripts/R_setup.sh +1 -1
- data/share/provision_scripts/bootstrap.sh +1 -1
- data/share/provision_scripts/gem_setup.sh +7 -3
- data/share/provision_scripts/ruby_setup.sh +8 -2
- data/share/provision_scripts/ubuntu_setup.sh +16 -9
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45c46d847d1522d0d774cbdad29d9ba70bb1cc42036234dc53de6d0723403e02
|
|
4
|
+
data.tar.gz: eef195a183125dbb8f9c3d3f12157a3bff0c4ed12ef1118cd88acf3878d7bba4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3d2cac785c2cd0d192f2913af0f40e6a1abb65b3daa8efd8a2e4f4c97aba672c6421e2e1a8222f753694ac7e52493de3be2af7080943e3bcaf3faec16e44aa2
|
|
7
|
+
data.tar.gz: 90c007ee52794941a8c421882779d2e6a1e147e83e9c77e59a1dd4e57e248bed87e4fd20165d530a71933e783b1e929eaa652aec86b6dc1afb176cd01a3984db
|
|
@@ -94,7 +94,7 @@ VARIABLES[:REMOTE_WORKFLOWS] = options[:remote_workflows].split(/[\s,]+/)*" " if
|
|
|
94
94
|
VARIABLES[:RBBT_NOCOLOR] = "true" if options[:nocolor]
|
|
95
95
|
VARIABLES[:RBBT_NO_PROGRESS] = "true" if options[:nobar]
|
|
96
96
|
|
|
97
|
-
options[:ruby_version] ||= "2.4
|
|
97
|
+
options[:ruby_version] ||= "2.6.4"
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
provision_script =<<-EOF
|
|
@@ -290,7 +290,7 @@ provision_script +=<<-EOF
|
|
|
290
290
|
# ====
|
|
291
291
|
|
|
292
292
|
apt-get clean
|
|
293
|
-
rm -rf /var/lib/apt/lists/* /
|
|
293
|
+
rm -rf /var/lib/apt/lists/* /var/tmp/* /usr/share/doc /usr/share/man /usr/local/share/ri
|
|
294
294
|
|
|
295
295
|
#{ "su -l -c 'rbbt system optimize /home/#{USER}/.rbbt ' #{USER}" if OPTIMIZE}
|
|
296
296
|
|
|
@@ -300,9 +300,9 @@ date
|
|
|
300
300
|
|
|
301
301
|
EOF
|
|
302
302
|
|
|
303
|
-
container_dependency = options[:container_dependency] || 'ubuntu:cosmic'
|
|
304
303
|
|
|
305
304
|
if docker_image = options[:docker]
|
|
305
|
+
container_dependency = options[:container_dependency] || 'ubuntu:disco'
|
|
306
306
|
dockerfile = options[:dockerfile] || File.join(root_dir, 'Dockerfile')
|
|
307
307
|
dockerfile_text = Open.read(dockerfile)
|
|
308
308
|
dockerfile_text.sub!(/^FROM.*/,'FROM ' + container_dependency) if container_dependency
|
|
@@ -339,6 +339,7 @@ end
|
|
|
339
339
|
|
|
340
340
|
if singularity_image = options[:singularity]
|
|
341
341
|
|
|
342
|
+
container_dependency = options[:container_dependency] || 'ubuntu:disco'
|
|
342
343
|
TmpFile.with_file(nil, false) do |dir|
|
|
343
344
|
Path.setup(dir)
|
|
344
345
|
|
|
@@ -349,10 +350,10 @@ Bootstrap: docker
|
|
|
349
350
|
From: #{container_dependency}
|
|
350
351
|
|
|
351
352
|
%post
|
|
352
|
-
cat > /
|
|
353
|
+
cat > /image_provision.sh <<"EOS"
|
|
353
354
|
#{provision_script}
|
|
354
355
|
EOS
|
|
355
|
-
bash -x /
|
|
356
|
+
bash -x /image_provision.sh 2>&1 | tee /image_provision.log
|
|
356
357
|
ln -s /etc/rbbt_environment /.singularity.d/env/99-rbbt_environment.sh
|
|
357
358
|
chmod +x /.singularity.d/env/99-rbbt_environment.sh
|
|
358
359
|
bash -c '[ -d /usr/local/share ] || mkdir -p /usr/local/share'
|
|
@@ -368,22 +369,22 @@ EOF
|
|
|
368
369
|
Open.write(dir["singularity_bootstrap"].find, bootstrap_text)
|
|
369
370
|
Open.write(provision_file, provision_script)
|
|
370
371
|
|
|
371
|
-
puts "RUN"
|
|
372
|
-
puts "==="
|
|
373
372
|
singularity_size = options[:singularity_size] || 3072
|
|
374
373
|
cmd_create = "singularity create -s #{singularity_size} #{singularity_image}"
|
|
375
374
|
cmd_boot = "singularity build #{singularity_image} '#{dir["singularity_bootstrap"]}'"
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
puts "**************"
|
|
378
|
+
puts "CREATING IMAGE: #{dir["singularity_bootstrap"].find}"
|
|
379
|
+
puts "**************"
|
|
376
380
|
puts cmd_create
|
|
377
|
-
|
|
378
|
-
while line = io.gets
|
|
379
|
-
puts line
|
|
380
|
-
end
|
|
381
|
+
CMD.cmd_log(cmd_create, :log => 4)
|
|
381
382
|
|
|
383
|
+
puts "**************"
|
|
384
|
+
puts "BUILDING IMAGE: #{dir["singularity_bootstrap"].find}"
|
|
385
|
+
puts "**************"
|
|
382
386
|
puts cmd_boot
|
|
383
|
-
|
|
384
|
-
while line = io.gets
|
|
385
|
-
puts line
|
|
386
|
-
end
|
|
387
|
+
CMD.cmd_log(cmd_boot, :log => 4)
|
|
387
388
|
end
|
|
388
389
|
|
|
389
390
|
end
|
|
@@ -38,7 +38,8 @@ R_install_packages 'digest' 'gtable' 'reshape2' 'scales' 'proto'
|
|
|
38
38
|
R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_1.0.0.tar.gz' ggplot2
|
|
39
39
|
|
|
40
40
|
R_install_packages NMF Cairo drc Rserve gridSVG ggthemes mclust randomForest viper
|
|
41
|
-
R_install_packages pheatmap VennDiagram Hmisc pls
|
|
41
|
+
R_install_packages pheatmap VennDiagram Hmisc pls gridSVG
|
|
42
|
+
R_install_packages tidyverse
|
|
42
43
|
|
|
43
44
|
R_biocLite limma viper
|
|
44
45
|
|
|
@@ -29,8 +29,6 @@ gem install --no-document --force \
|
|
|
29
29
|
ruby-prof \
|
|
30
30
|
rbbt-util rbbt-rest rbbt-dm rbbt-text rbbt-sources rbbt-phgx rbbt-GE \
|
|
31
31
|
rserve-client \
|
|
32
|
-
uglifier therubyracer kramdown\
|
|
33
|
-
puma prawn prawn-svg
|
|
34
32
|
|
|
35
33
|
# Get good version of lockfile
|
|
36
34
|
#wget http://ubio.bioinfo.cnio.es/people/mvazquezg/lockfile-2.1.4.gem -O /tmp/lockfile-2.1.4.gem
|
|
@@ -39,4 +37,10 @@ wget http://github.com/mikisvaz/lockfile/raw/master/lockfile-2.1.5.gem -O /tmp/l
|
|
|
39
37
|
gem install --no-document /tmp/lockfile-2.1.5.gem
|
|
40
38
|
|
|
41
39
|
# Extra things for web interface
|
|
42
|
-
gem install --no-document
|
|
40
|
+
gem install --no-document --force \
|
|
41
|
+
tokyocabinet \
|
|
42
|
+
ruby-prof \
|
|
43
|
+
rbbt-util rbbt-rest rbbt-dm rbbt-text rbbt-sources rbbt-phgx rbbt-GE \
|
|
44
|
+
rserve-client \
|
|
45
|
+
uglifier therubyracer kramdown pandoc pandoc-ruby\
|
|
46
|
+
puma prawn prawn-svg
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
# ============
|
|
5
5
|
|
|
6
6
|
_small_version=`echo $RUBY_VERSION | cut -f 1,2 -d.`
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
[ -d /tmp/ruby-install ] || mkdir /tmp/ruby-install
|
|
9
|
+
|
|
10
|
+
_prewd="$(pwd)"
|
|
11
|
+
cd /tmp/ruby-install
|
|
12
|
+
|
|
8
13
|
wget https://cache.ruby-lang.org/pub/ruby/$_small_version/ruby-${RUBY_VERSION}.tar.gz -O "ruby.tar.gz"
|
|
9
14
|
tar -xvzf ruby.tar.gz
|
|
10
15
|
cd ruby-*/
|
|
@@ -13,7 +18,8 @@ make && make install
|
|
|
13
18
|
|
|
14
19
|
unset _small_version
|
|
15
20
|
|
|
16
|
-
|
|
21
|
+
cd "$_prewd"
|
|
22
|
+
rm -Rf /tmp/ruby-install
|
|
17
23
|
|
|
18
24
|
#\curl -sSL https://get.rvm.io | bash -s stable
|
|
19
25
|
#source /etc/profile.d/rvm.sh
|
|
@@ -15,7 +15,7 @@ _append_with_colon(){
|
|
|
15
15
|
|
|
16
16
|
current=`_var_content $var`
|
|
17
17
|
|
|
18
|
-
if ! echo $current | grep "\(^\|:\)$value\(:\|$\)"
|
|
18
|
+
if ! echo $current | grep "\(^\|:\)$value\(:\|$\)" >/dev/null 2>&1; then
|
|
19
19
|
eval $(echo $var)="\"$current:$value\""
|
|
20
20
|
fi
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ _append_with_space(){
|
|
|
26
26
|
|
|
27
27
|
current=`_var_content $var`
|
|
28
28
|
|
|
29
|
-
if ! echo $current | grep "\(^\| \)$value\( \|$\)"
|
|
29
|
+
if ! echo $current | grep "\(^\| \)$value\( \|$\)" >/dev/null 2>&1; then
|
|
30
30
|
eval $(echo $var)="\"$current:$value\""
|
|
31
31
|
fi
|
|
32
32
|
}
|
|
@@ -37,7 +37,7 @@ _prepend_with_colon(){
|
|
|
37
37
|
|
|
38
38
|
current=`_var_content $var`
|
|
39
39
|
|
|
40
|
-
if ! echo $current | grep "\(^\|:\)$value\(:\|$\)"
|
|
40
|
+
if ! echo $current | grep "\(^\|:\)$value\(:\|$\)" >/dev/null 2>&1; then
|
|
41
41
|
eval $(echo $var)="\"$value:$current\""
|
|
42
42
|
fi
|
|
43
43
|
}
|
|
@@ -48,18 +48,18 @@ _prepend_with_space(){
|
|
|
48
48
|
|
|
49
49
|
current=`_var_content $var`
|
|
50
50
|
|
|
51
|
-
if ! echo $current | grep "\(^\| \)$value\( \|$\)"
|
|
51
|
+
if ! echo $current | grep "\(^\| \)$value\( \|$\)" >/dev/null 2>&1; then
|
|
52
52
|
eval $(echo $var)="\"$value $current\""
|
|
53
53
|
fi
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
_add_path(){
|
|
57
|
-
_prepend_with_colon PATH "$1"
|
|
57
|
+
_prepend_with_colon PATH "${1%/}"
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
_add_libpath(){
|
|
61
|
-
_prepend_with_colon LD_LIBRARY_PATH "$1"
|
|
62
|
-
_prepend_with_colon LD_RUN_PATH "$1"
|
|
61
|
+
_prepend_with_colon LD_LIBRARY_PATH "${1%/}"
|
|
62
|
+
_prepend_with_colon LD_RUN_PATH "${1%/}"
|
|
63
63
|
}
|
|
64
64
|
EOF
|
|
65
65
|
|
|
@@ -72,16 +72,19 @@ apt-get -y install software-properties-common
|
|
|
72
72
|
|
|
73
73
|
apt-get -y update
|
|
74
74
|
apt-get -y update
|
|
75
|
-
apt-get -y install \
|
|
75
|
+
DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
|
76
76
|
vim \
|
|
77
|
+
wget \
|
|
78
|
+
libc6 \
|
|
77
79
|
bison autoconf g++ libxslt1-dev make \
|
|
78
80
|
zlib1g-dev libbz2-dev libreadline-dev \
|
|
79
|
-
wget curl git openssl libyaml-0-2 libyaml-dev \
|
|
81
|
+
rsync wget curl git openssl libyaml-0-2 libyaml-dev \
|
|
80
82
|
openjdk-8-jdk \
|
|
81
83
|
libcairo2 libcairo2-dev r-base-core r-base-dev r-cran-rserve liblzma5 liblzma-dev libcurl4-openssl-dev \
|
|
82
84
|
build-essential zlib1g-dev libssl-dev libyaml-dev libffi-dev \
|
|
83
85
|
python3 python \
|
|
84
86
|
tcsh gawk \
|
|
87
|
+
pandoc \
|
|
85
88
|
libtbb-dev
|
|
86
89
|
|
|
87
90
|
#add-apt-repository ppa:george-edison55/cmake-3.x
|
|
@@ -99,6 +102,7 @@ ln -s /usr/lib/R/site-library/Rserve/libs/Rserve /usr/lib/R/bin/Rserve
|
|
|
99
102
|
|
|
100
103
|
echo "export R_HOME='/usr/lib/R' # For Ruby's RSRuby gem" >> /etc/rbbt_environment
|
|
101
104
|
echo '_add_path "$R_HOME/bin/" # Rserver' >> /etc/rbbt_environment
|
|
105
|
+
echo 'export R_LIBS_USER="~/container_R/lib" # Avoid collision with host system' >> /etc/rbbt_environment
|
|
102
106
|
|
|
103
107
|
[ -d /opt/bin ] || mkdir -p /opt/bin
|
|
104
108
|
echo '_add_path "/opt/bin/"' >> /etc/rbbt_environment
|
|
@@ -106,6 +110,9 @@ echo '_add_path "/opt/bin/"' >> /etc/rbbt_environment
|
|
|
106
110
|
[ -d /usr/local/bin ] || mkdir -p /usr/local/bin
|
|
107
111
|
echo '_add_path "/usr/local/bin/"' >> /etc/rbbt_environment
|
|
108
112
|
|
|
113
|
+
echo 'export LC_ALL=C.UTF-8' >> /etc/rbbt_environment
|
|
114
|
+
|
|
115
|
+
|
|
109
116
|
. /etc/rbbt_environment
|
|
110
117
|
|
|
111
118
|
apt-get clean
|
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.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miguel Vazquez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rbbt-util
|
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
72
|
version: '0'
|
|
73
73
|
requirements: []
|
|
74
|
-
rubygems_version: 3.0.
|
|
74
|
+
rubygems_version: 3.0.6
|
|
75
75
|
signing_key:
|
|
76
76
|
specification_version: 4
|
|
77
77
|
summary: Build docker and Vagrant (VM) images
|