rbbt-image 0.1.27 → 0.1.28
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: 1cb89f08075de1b263ebc22095ae3a0b8c9973b6
|
4
|
+
data.tar.gz: 24b81127c036dcb78571b520d20a66cb25229b3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f28ab3cc789221ee988581e041f27b7fb34c8e7abb5b3e9444909ad2b00ac44fffa03b5a8f3150782a9f58ce902aa1dc0bf62fb1048ccecf12b39f01e0ad3efc
|
7
|
+
data.tar.gz: 0f5bfb7debcfb0784bac11903f94d97fd79e1ca774c6df66e50e723b09df751ab3313f6ac09624094ff2d7a188c5c57c94cd02023e984780ce372604831800da
|
@@ -34,12 +34,12 @@ $ #{$0} [options]
|
|
34
34
|
-sb--skip_bootstrap Skip user bootstrap
|
35
35
|
-Rc--R_custom Install a custom installation of R
|
36
36
|
-Rp--R_packages Install basic R packages
|
37
|
-
-c--concurrent Prepare system for high-concurrency
|
38
37
|
-Rbv--ruby_version* Ruby version to use, using three numbers (defaults to 2.4.1)
|
39
38
|
-op--optimize Optimize files under ~/.rbbt
|
40
39
|
-dep--container_dependency* Use a different image in Dockerfile, Singularity and Virtualbox
|
41
40
|
-dt--docker* Build docker image using the provided name
|
42
41
|
-si--singularity* Build singularity image using the provided name
|
42
|
+
-sis--singularity_size* Singularity image size (default 2024)
|
43
43
|
-vb--virtualbox Build virtualbox image
|
44
44
|
-df--docker_file* Use a Dockerfile different than the default
|
45
45
|
-dv--docker_volumnes* List of volumes to set-up in Docker
|
@@ -59,10 +59,10 @@ end
|
|
59
59
|
root_dir = File.dirname(File.dirname(File.expand_path(__FILE__)))
|
60
60
|
script_dir = File.join(root_dir, "share/provision_scripts/")
|
61
61
|
|
62
|
-
if options[:singularity]
|
63
|
-
options[:skip_user_setup] = true
|
64
|
-
options[:skip_bootstrap] = true
|
65
|
-
end
|
62
|
+
#if options[:singularity]
|
63
|
+
# options[:skip_user_setup] = true
|
64
|
+
# options[:skip_bootstrap] = true
|
65
|
+
#end
|
66
66
|
|
67
67
|
USER = options[:user] || 'rbbt'
|
68
68
|
SKIP_BASE_SYSTEM = options[:skip_base_system]
|
@@ -83,7 +83,6 @@ VARIABLES={
|
|
83
83
|
|
84
84
|
VARIABLES[:BOOTSTRAP_WORKFLOWS] = "" if VARIABLES[:BOOTSTRAP_WORKFLOWS] == 'none'
|
85
85
|
|
86
|
-
VARIABLES[:RBBT_NO_LOCKFILE_ID] = "true" if options[:concurrent]
|
87
86
|
VARIABLES[:RBBT_SERVER] = options[:server] if options[:server]
|
88
87
|
VARIABLES[:RBBT_FILE_SERVER] = options[:file_server] if options[:file_server]
|
89
88
|
VARIABLES[:RBBT_WORKFLOW_SERVER] = options[:workflow_server] if options[:workflow_server]
|
@@ -330,9 +329,16 @@ From: #{container_dependency}
|
|
330
329
|
cat > /tmp/rbbt_provision.sh <<"EOS"
|
331
330
|
#{provision_script}
|
332
331
|
EOS
|
333
|
-
bash /tmp/rbbt_provision.sh
|
332
|
+
bash -x /tmp/rbbt_provision.sh
|
334
333
|
ln -s /etc/rbbt_environment /.singularity.d/env/99-rbbt_environment.sh
|
335
334
|
chmod +x /.singularity.d/env/99-rbbt_environment.sh
|
335
|
+
bash -c '[ -d /usr/local/share ] || mkdir -p /usr/local/share'
|
336
|
+
bash -c '[ -d /software/rbbt ] || mkdir -p /software/rbbt'
|
337
|
+
bash -c '[ -d /home/#{USER}/.rbbt/var/ ] && mv /home/#{USER}/.rbbt/var/ /var/rbbt'
|
338
|
+
bash -c '[ -d /home/#{USER}/.rbbt/share/ ] && mv /home/#{USER}/.rbbt/share/ /usr/local/share/rbbt'
|
339
|
+
bash -c '[ -d /home/#{USER}/.rbbt/software/opt ] && mv /home/#{USER}/.rbbt/software/opt /software/rbbt/opt'
|
340
|
+
bash -c '[ -d /home/#{USER}/.rbbt/software/src ] && mv /home/#{USER}/.rbbt/software/src /software/rbbt/src'
|
341
|
+
bash -c '[ -d /home/#{USER}/.rbbt/software/scm ] && mv /home/#{USER}/.rbbt/software/scm /software/rbbt/scm'
|
336
342
|
EOF
|
337
343
|
FileUtils.mkdir_p dir
|
338
344
|
Open.write(dir["singularity_bootstrap"].find, bootstrap_text)
|
@@ -340,7 +346,8 @@ EOF
|
|
340
346
|
|
341
347
|
puts "RUN"
|
342
348
|
puts "==="
|
343
|
-
|
349
|
+
singularity_size = options[:singularity_size]
|
350
|
+
cmd_create = "singularity create -s #{singularity_size} #{singularity_image}"
|
344
351
|
cmd_boot = "singularity bootstrap #{singularity_image} '#{dir["singularity_bootstrap"]}'"
|
345
352
|
puts cmd_create
|
346
353
|
io = CMD.cmd(cmd_create, :pipe => true, :log => true)
|
@@ -33,7 +33,7 @@ function R_CMD_install(){
|
|
33
33
|
R_install_packages Rcpp RJSONIO XML
|
34
34
|
R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/plyr/plyr_1.8.1.tar.gz' plyr
|
35
35
|
R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/car/car_2.0-22.tar.gz' car
|
36
|
-
R_install_packages 'digest'
|
36
|
+
R_install_packages 'digest' 'gtable' 'reshape2' 'scales' 'proto'
|
37
37
|
|
38
38
|
R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_1.0.0.tar.gz' ggplot2
|
39
39
|
|
@@ -7,10 +7,11 @@ for workflow in $WORKFLOWS; do
|
|
7
7
|
rbbt workflow install $workflow
|
8
8
|
done
|
9
9
|
|
10
|
-
export RBBT_WORKFLOW_AUTOINSTALL
|
10
|
+
export RBBT_WORKFLOW_AUTOINSTALL=true
|
11
11
|
export RBBT_LOG
|
12
12
|
|
13
13
|
for workflow in $BOOTSTRAP_WORKFLOWS; do
|
14
14
|
echo "Bootstrapping $workflow on $BOOTSTRAP_CPUS CPUs"
|
15
|
-
rbbt
|
15
|
+
[ -d $HOME/.rbbt/tmp/ ] || mkdir -p $HOME/.rbbt/tmp/
|
16
|
+
rbbt workflow cmd $workflow bootstrap --cpus $BOOTSTRAP_CPUS &> $HOME/.rbbt/tmp/${workflow}.bootstrap.log
|
16
17
|
done
|
@@ -5,23 +5,26 @@
|
|
5
5
|
|
6
6
|
. /etc/rbbt_environment
|
7
7
|
|
8
|
+
echo "* Updating RubyGem"
|
8
9
|
export REALLY_GEM_UPDATE_SYSTEM=true
|
9
|
-
env REALLY_GEM_UPDATE_SYSTEM=true gem update --no-
|
10
|
-
|
11
|
-
|
10
|
+
env REALLY_GEM_UPDATE_SYSTEM=true gem update --no-document --system
|
11
|
+
|
12
|
+
echo "* Installing difficult gems: ZenTest, RubyInline, rsruby and rjb"
|
13
|
+
gem install --force --no-document ZenTest
|
14
|
+
gem install --force --no-document RubyInline
|
12
15
|
|
13
16
|
# R (extra config in gem)
|
14
|
-
. /etc/rbbt_environment
|
15
17
|
export R_INCLUDE="$(echo "$R_HOME" | sed 's@/usr/lib\(32\|64\)*@/usr/share@')/include"
|
16
|
-
gem install --conservative --no-
|
18
|
+
gem install --conservative --no-document rsruby -- --with-R-dir="$R_HOME" --with-R-include="$R_INCLUDE" \
|
17
19
|
--with_cflags="-fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wall -fno-strict-aliasing"
|
18
20
|
|
19
21
|
# Java (extra config in gem)
|
20
22
|
export JAVA_HOME=$(echo /usr/lib/jvm/java-?-openjdk-*)
|
21
|
-
gem install --conservative --force --no-
|
23
|
+
gem install --conservative --force --no-document rjb
|
22
24
|
|
25
|
+
echo "* Installing bulk gems and Rbbt"
|
23
26
|
# Rbbt and some optional gems
|
24
|
-
gem install --no-
|
27
|
+
gem install --no-document --force \
|
25
28
|
tokyocabinet \
|
26
29
|
ruby-prof \
|
27
30
|
rbbt-util rbbt-rest rbbt-dm rbbt-text rbbt-sources rbbt-phgx rbbt-GE \
|
@@ -31,8 +34,9 @@ gem install --no-ri --no-rdoc --force \
|
|
31
34
|
|
32
35
|
# Get good version of lockfile
|
33
36
|
#wget http://ubio.bioinfo.cnio.es/people/mvazquezg/lockfile-2.1.4.gem -O /tmp/lockfile-2.1.4.gem
|
37
|
+
echo "* Installing our version of lockfile"
|
34
38
|
wget http://github.com/mikisvaz/lockfile/raw/master/lockfile-2.1.5.gem -O /tmp/lockfile-2.1.5.gem
|
35
|
-
gem install --no-
|
39
|
+
gem install --no-document /tmp/lockfile-2.1.5.gem
|
36
40
|
|
37
41
|
# Extra things for web interface
|
38
|
-
gem install --no-
|
42
|
+
gem install --no-document bio-svgenes mimemagic
|
@@ -18,7 +18,8 @@ apt-get -y install \
|
|
18
18
|
wget curl git openssl libyaml-0-2 libyaml-dev \
|
19
19
|
openjdk-8-jdk \
|
20
20
|
libcairo2 libcairo2-dev r-base-core r-base-dev r-cran-rserve liblzma5 liblzma-dev libcurl4-openssl-dev \
|
21
|
-
build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libffi-dev
|
21
|
+
build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libffi-dev \
|
22
|
+
libtbb-dev
|
22
23
|
|
23
24
|
# For paradigm/libdai
|
24
25
|
apt-get -y install \
|
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.28
|
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: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|