rbbt-image 0.1.40 → 0.2.0
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 +20 -7
- data/share/provision_scripts/R.sh +1 -55
- data/share/provision_scripts/R_custom.sh +3 -2
- data/share/provision_scripts/R_packages.sh +51 -0
- data/share/provision_scripts/alpine_basic_setup.sh +3 -0
- data/share/provision_scripts/alpine_extended_setup.sh +2 -0
- data/share/provision_scripts/alpine_setup.sh +3 -1
- data/share/provision_scripts/bootstrap.sh +5 -4
- data/share/provision_scripts/custom_gems.sh +1 -0
- data/share/provision_scripts/gem.sh +1 -1
- data/share/provision_scripts/migrate.sh +0 -1
- data/share/provision_scripts/python.sh +2 -0
- data/share/provision_scripts/python_custom.sh +7 -4
- data/share/provision_scripts/ruby_custom.sh +11 -3
- data/share/provision_scripts/tokyocabinet.sh +2 -1
- data/share/provision_scripts/ubuntu_basic_setup.sh +37 -0
- data/share/provision_scripts/ubuntu_setup.sh +3 -66
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd869e4ef0be90e31b7336f2dda2776fefb6449e1423d2d96e5ce9daf09b029f
|
4
|
+
data.tar.gz: 1b60f792b06bd633e39b6fd917c6075b333b06fda808e1a5a1c03c4b97507dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8269c1f224f9292c164e075893f95b68ee4bd93d5e0ce008db17e819fa54b05b8e3abed9392161189dbbf73bbe377be81c251c3f05bba8762077b756c3566b6c
|
7
|
+
data.tar.gz: b8f112f632dbdbf54d4fe762589b2397eaf1852727faeb2fa8836c4c8bcfbe7fb1b6b84eda747ba5ba182fc9af6763b625f3ba83b339b87c77ccdb00cbd1bab6
|
@@ -39,6 +39,8 @@ $ #{$0} [options]
|
|
39
39
|
-dv--docker_volumnes* List of volumes to set-up in Docker
|
40
40
|
--nocolor Prevent rbbt from using colors and control sequences in the logs while provisioning
|
41
41
|
--nobar Prevent rbbt from using progress bars while provisioning
|
42
|
+
-g--gems* Custom gems to install
|
43
|
+
-sp--system_packages* Custom system packages
|
42
44
|
EOF
|
43
45
|
|
44
46
|
if options[:help]
|
@@ -58,8 +60,7 @@ script_dir = File.join(root_dir, "share/provision_scripts/")
|
|
58
60
|
# options[:skip_bootstrap] = true
|
59
61
|
#end
|
60
62
|
|
61
|
-
all_steps = %w(functions base_system tokyocabinet ruby_custom gem java R_custom R perl_custom python_custom python user slurm_loopback hacks)
|
62
|
-
|
63
|
+
all_steps = %w(functions base_system tokyocabinet ruby_custom gem custom_gems java R_custom R R_packages perl_custom python_custom python user slurm_loopback hacks)
|
63
64
|
|
64
65
|
do_steps = options.include?("do")? (all_steps & options[:do].split(",")) : all_steps
|
65
66
|
not_do_steps = options.include?(:not_do)? options[:not_do].split(",") : all_steps - do_steps
|
@@ -85,7 +86,11 @@ VARIABLES[:REMOTE_WORKFLOWS] = options[:remote_workflows].split(/[\s,]+/)*" " if
|
|
85
86
|
VARIABLES[:RBBT_NOCOLOR] = "true" if options[:nocolor]
|
86
87
|
VARIABLES[:RBBT_NO_PROGRESS] = "true" if options[:nobar]
|
87
88
|
|
88
|
-
options[:ruby_version] ||= "2.6.4"
|
89
|
+
VARIABLES[:RUBY_VERSION] = options[:ruby_version] ||= "2.6.4"
|
90
|
+
VARIABLES[:CUSTOM_GEMS] = options[:gems]
|
91
|
+
VARIABLES[:CUSTOM_SYSTEM_PACKAGES] = options[:system_packages]
|
92
|
+
|
93
|
+
do_steps << 'custom_gems' if options[:gems]
|
89
94
|
|
90
95
|
provision_script =<<-EOF
|
91
96
|
#!/bin/bash -x
|
@@ -93,9 +98,14 @@ provision_script =<<-EOF
|
|
93
98
|
# PROVISION FILE
|
94
99
|
echo "CMD: #{File.basename($0) + " " + orig_argv.collect{|a| a =~ /\s/ ? "\'#{a}\'" : a }.join(" ")}"
|
95
100
|
|
96
|
-
test -f /etc/profile &&
|
97
|
-
test -f /etc/rbbt_environment &&
|
101
|
+
test -f /etc/profile && . /etc/profile
|
102
|
+
test -f /etc/rbbt_environment && . /etc/rbbt_environment
|
98
103
|
|
104
|
+
#{
|
105
|
+
VARIABLES.collect do |variable,value|
|
106
|
+
"export " << ([variable,'"' << value.to_s << '"'] * "=")
|
107
|
+
end * "\n"
|
108
|
+
}
|
99
109
|
EOF
|
100
110
|
|
101
111
|
all_steps.each_with_index do |step,i|
|
@@ -128,9 +138,11 @@ all_steps.each_with_index do |step,i|
|
|
128
138
|
|
129
139
|
echo "6.4. Install and bootstrap"
|
130
140
|
#{File.read(script_dir + "bootstrap.sh")}
|
131
|
-
|
141
|
+
#
|
132
142
|
echo "6.5. Migrate shared files"
|
133
143
|
#{File.read(script_dir + "migrate.sh")}
|
144
|
+
|
145
|
+
rm -Rf ~/.rbbt/tmp/
|
134
146
|
EOF
|
135
147
|
|
136
148
|
<<~EOF
|
@@ -159,8 +171,9 @@ all_steps.each_with_index do |step,i|
|
|
159
171
|
#{user_script}
|
160
172
|
EUSER
|
161
173
|
|
162
|
-
|
174
|
+
chmod 777 -R /usr/local/
|
163
175
|
su -l -c "sh $user_script" #{USER}
|
176
|
+
|
164
177
|
EOF
|
165
178
|
else
|
166
179
|
File.read(script_dir + "#{step}.sh")
|
@@ -3,64 +3,10 @@
|
|
3
3
|
# INSTALL
|
4
4
|
# =======
|
5
5
|
|
6
|
-
# R packages
|
7
|
-
# ----------
|
8
|
-
|
9
|
-
function R_install_packages(){
|
10
|
-
pkgs="'$1'"
|
11
|
-
shift
|
12
|
-
for p in $@; do
|
13
|
-
pkgs="$pkgs, '$p'"
|
14
|
-
done
|
15
|
-
echo "install.packages(c($pkgs), repos='http://cran.us.r-project.org')" | R --vanilla --quiet
|
16
|
-
}
|
17
|
-
|
18
|
-
function R_biocLite(){
|
19
|
-
pkgs="'$1'"
|
20
|
-
shift
|
21
|
-
for p in $@; do
|
22
|
-
echo "BiocManager::install(c('$p'))" | R --vanilla --quiet
|
23
|
-
done
|
24
|
-
}
|
25
|
-
|
26
|
-
function R_CMD_install(){
|
27
|
-
url=$1
|
28
|
-
name=$2
|
29
|
-
wget "$url" -O /tmp/R-pkg-"$name".tar.gz
|
30
|
-
R CMD INSTALL /tmp/R-pkg-"$name".tar.gz
|
31
|
-
}
|
32
|
-
|
33
6
|
|
34
7
|
export R_HOME=$(R RHOME)
|
35
8
|
export R_INCLUDE="$R_HOME/../../include/R"
|
36
|
-
gem install rsruby -- --with-R-dir=$R_HOME --with-R-include=$R_INCLUDE
|
9
|
+
gem install rsruby -- --with-R-dir=$R_HOME --with-R-include=$R_INCLUDE || gem install rsruby -- --with-R-dir=$R_HOME --with-R-include=/usr/share/R/include/
|
37
10
|
|
38
11
|
echo 'install.packages("Rserve", repos="http://www.rforge.net/")' | R --vanilla --quiet
|
39
12
|
gem install rserve-client
|
40
|
-
|
41
|
-
#R_install_packages 'Rcpp'
|
42
|
-
#R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/plyr/plyr_1.8.1.tar.gz' plyr
|
43
|
-
|
44
|
-
#R_install_packages 'MASS' 'nnet'
|
45
|
-
#R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/car/car_2.0-22.tar.gz' car
|
46
|
-
|
47
|
-
R_install_packages 'tidyverse'
|
48
|
-
|
49
|
-
R_install_packages 'RJSONIO' 'XML' 'digest' 'gtable' 'reshape2' 'scales' 'proto'
|
50
|
-
#R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_1.0.0.tar.gz' ggplot2
|
51
|
-
|
52
|
-
R_install_packages 'BiocManager'
|
53
|
-
R_biocLite Biobase
|
54
|
-
|
55
|
-
R_install_packages NMF Cairo drc gridSVG ggthemes mclust randomForest viper
|
56
|
-
|
57
|
-
R_install_packages pheatmap VennDiagram Hmisc pls gridSVG
|
58
|
-
|
59
|
-
R_install_packages UpSetR
|
60
|
-
|
61
|
-
R_biocLite limma viper
|
62
|
-
|
63
|
-
R_install_packages pROC txtplot
|
64
|
-
|
65
|
-
rm /tmp/R-pkg-*.tar.gz
|
66
|
-
|
@@ -16,7 +16,8 @@ make && make install
|
|
16
16
|
|
17
17
|
echo "# For RSRuby gem " >> /etc/rbbt_environment
|
18
18
|
echo 'export R_HOME="/usr/local/lib/R"' >> /etc/rbbt_environment
|
19
|
-
echo '
|
20
|
-
echo '
|
19
|
+
echo 'PATH="$R_HOME/bin/:$PATH" # Rserver' >> /etc/rbbt_environment
|
20
|
+
echo 'LD_LIBRARY_PATH="$R_HOME/lib/:$LD_LIBRARY_PATH" # Rserver' >> /etc/rbbt_environment
|
21
|
+
echo 'LD_RUN_PATH="$R_HOME/lib/:$LD_RUN_PATH" # Rserver' >> /etc/rbbt_environment
|
21
22
|
|
22
23
|
. /etc/rbbt_environment
|
@@ -0,0 +1,51 @@
|
|
1
|
+
#!/bin/bash -x
|
2
|
+
|
3
|
+
# INSTALL
|
4
|
+
# =======
|
5
|
+
|
6
|
+
# R packages
|
7
|
+
# ----------
|
8
|
+
|
9
|
+
R_install_packages(){
|
10
|
+
pkgs="'$1'"
|
11
|
+
shift
|
12
|
+
for p in $@; do
|
13
|
+
pkgs="$pkgs, '$p'"
|
14
|
+
done
|
15
|
+
echo "install.packages(c($pkgs), repos='http://cran.us.r-project.org')" | R --vanilla --quiet
|
16
|
+
}
|
17
|
+
|
18
|
+
R_biocLite(){
|
19
|
+
pkgs="'$1'"
|
20
|
+
shift
|
21
|
+
for p in $@; do
|
22
|
+
echo "BiocManager::install(c('$p'))" | R --vanilla --quiet
|
23
|
+
done
|
24
|
+
}
|
25
|
+
|
26
|
+
R_CMD_install(){
|
27
|
+
url=$1
|
28
|
+
name=$2
|
29
|
+
wget "$url" -O /tmp/R-pkg-"$name".tar.gz
|
30
|
+
R CMD INSTALL /tmp/R-pkg-"$name".tar.gz
|
31
|
+
}
|
32
|
+
|
33
|
+
R_install_packages 'tidyverse'
|
34
|
+
|
35
|
+
R_install_packages 'RJSONIO' 'XML' 'digest' 'gtable' 'reshape2' 'scales' 'proto'
|
36
|
+
|
37
|
+
R_install_packages 'BiocManager'
|
38
|
+
R_biocLite Biobase
|
39
|
+
|
40
|
+
R_install_packages NMF Cairo drc gridSVG ggthemes mclust randomForest viper
|
41
|
+
|
42
|
+
R_install_packages pheatmap VennDiagram Hmisc pls gridSVG
|
43
|
+
|
44
|
+
R_install_packages UpSetR
|
45
|
+
|
46
|
+
R_biocLite limma viper
|
47
|
+
|
48
|
+
R_install_packages pROC txtplot
|
49
|
+
|
50
|
+
rm /tmp/R-pkg-*.tar.gz
|
51
|
+
|
@@ -2,7 +2,10 @@
|
|
2
2
|
apk add ruby ruby-dev # Ruby
|
3
3
|
apk add git make gcc g++ cmake # Building
|
4
4
|
apk add bzip2 bzip2-dev zlib zlib-dev krb5 gcompat # Libs
|
5
|
+
apk add openssl1.1-compat-dev openssl1.1-compat # openssl
|
5
6
|
apk add bash openssh-client wget curl rsync gnu-libiconv # Tools
|
7
|
+
|
8
|
+
echo $CUSTOM_SYSTEM_PACKAGES | sed 's/,/\n/g' | xargs apk add
|
6
9
|
|
7
10
|
gem install rbbt-util rbbt-sources
|
8
11
|
gem install RubyInline
|
@@ -4,6 +4,8 @@ apk add git make gcc g++ cmake # Building
|
|
4
4
|
apk add bzip2 bzip2-dev zlib zlib-dev krb5 gcompat # Libs
|
5
5
|
apk add bash openssh-client wget curl rsync gnu-libiconv # Tools
|
6
6
|
|
7
|
+
echo $CUSTOM_SYSTEM_PACKAGES | sed 's/,/\n/g' | xargs apk add
|
8
|
+
|
7
9
|
gem install rbbt-util rbbt-sources
|
8
10
|
gem install RubyInline
|
9
11
|
|
@@ -1,9 +1,11 @@
|
|
1
1
|
# Basic alpine setup
|
2
2
|
apk add ruby ruby-dev # Ruby
|
3
3
|
apk add git make gcc g++ cmake # Building
|
4
|
-
apk add bzip2 bzip2-dev zlib zlib-dev krb5 gcompat # Libs
|
4
|
+
apk add bzip2 bzip2-dev zlib zlib-dev krb5 gcompat openssl openssl1.1-compat openssl1.1-compat-dev # Libs
|
5
5
|
apk add bash openssh-client wget curl rsync gnu-libiconv # Tools
|
6
6
|
|
7
|
+
echo $CUSTOM_SYSTEM_PACKAGES | sed 's/,/\n/g' | xargs apk add
|
8
|
+
|
7
9
|
gem install rbbt-util rbbt-sources
|
8
10
|
gem install RubyInline
|
9
11
|
|
@@ -5,25 +5,26 @@
|
|
5
5
|
|
6
6
|
export RBBT_WORKFLOW_AUTOINSTALL=true
|
7
7
|
export RBBT_LOG=0
|
8
|
+
#export PIP_TARGET="/usr/local/python"
|
8
9
|
|
9
10
|
for workflow in $BOOTSTRAP_WORKFLOWS; do
|
10
11
|
rbbt workflow install $workflow
|
11
12
|
|
12
13
|
pip_requirements_file=$(rbbt_find.rb -w $workflow requirements.pip --nocolor)
|
13
|
-
test -z $pip_requirements_file || pip install -r $pip_requirements_file
|
14
|
+
test -z $pip_requirements_file || pip install -r $pip_requirements_file || pip install --break-system-packages -r $pip_requirements_file
|
14
15
|
unset pip_requirements_file
|
15
16
|
|
16
17
|
pip_requirements_file2=$(rbbt_find.rb -w $workflow requirements.pip2 --nocolor)
|
17
|
-
test -z $pip_requirements_file2 || pip install -r $pip_requirements_file2
|
18
|
+
test -z $pip_requirements_file2 || pip install -r $pip_requirements_file2 || pip install --break-system-packages -r $pip_requirements_file2
|
18
19
|
unset pip_requirements_file2
|
19
20
|
|
20
21
|
pip_requirements_file3=$(rbbt_find.rb -w $workflow requirements.pip3 --nocolor)
|
21
|
-
test -z $pip_requirements_file3 || pip install -r $pip_requirements_file3
|
22
|
+
test -z $pip_requirements_file3 || pip install -r $pip_requirements_file3 || pip install --break-system-packages -r $pip_requirements_file3
|
22
23
|
unset pip_requirements_file3
|
23
24
|
done
|
24
25
|
|
25
26
|
for workflow in $BOOTSTRAP_WORKFLOWS; do
|
26
27
|
echo "Bootstrapping $workflow on $BOOTSTRAP_CPUS CPUs"
|
27
|
-
|
28
|
+
test -d $HOME/.rbbt/tmp/ || mkdir -p $HOME/.rbbt/tmp/
|
28
29
|
rbbt workflow cmd $workflow bootstrap --config_keys "cpus $BOOTSTRAP_CPUS bootstrap" > $HOME/.rbbt/tmp/${workflow}.bootstrap.log
|
29
30
|
done
|
@@ -0,0 +1 @@
|
|
1
|
+
echo $CUSTOM_GEMS | sed 's/,/\n/g' | xargs gem install
|
@@ -30,7 +30,7 @@ gem install --no-document --force \
|
|
30
30
|
echo "* Installing extra gems for web stuff"
|
31
31
|
# Extra things for web interface
|
32
32
|
gem install --no-document \
|
33
|
-
sinatra puma \
|
33
|
+
sinatra puma rack \
|
34
34
|
rest-client \
|
35
35
|
kramdown pandoc pandoc-ruby \
|
36
36
|
spreadsheet rubyXL \
|
@@ -4,19 +4,22 @@ echo "# Python conda " >> /etc/rbbt_environment
|
|
4
4
|
bash /tmp/miniconda.sh -b -p /usr/local/miniconda3
|
5
5
|
|
6
6
|
ln -s /usr/local/miniconda3/bin/conda /usr/local/bin/conda
|
7
|
-
echo '
|
7
|
+
echo 'PATH="/usr/local/miniconda3/bin/:$PATH"' >> /etc/rbbt_environment
|
8
8
|
|
9
9
|
conda create --yes -n python2 python=2.7 pip
|
10
10
|
|
11
11
|
conda create --yes -n python3 python=3.6 pip
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
chmod 777 -R /usr/local/miniconda3/
|
14
|
+
|
15
|
+
echo 'PATH="/usr/local/miniconda3/envs/python2/bin/:$PATH"' >> /etc/rbbt_environment
|
16
|
+
echo 'PATH="/usr/local/miniconda3/envs/python3/bin/:$PATH"' >> /etc/rbbt_environment
|
15
17
|
echo '' >> /etc/rbbt_environment
|
16
18
|
echo '# Setup conda environment' >> /etc/rbbt_environment
|
17
19
|
echo 'export CONDA_PKGS_DIRS=~/tmp/conda/pkgs' >> /etc/rbbt_environment
|
18
20
|
echo '. /usr/local/miniconda3/etc/profile.d/conda.sh' >> /etc/rbbt_environment
|
21
|
+
echo 'conda activate python3' >> /etc/rbbt_environment
|
19
22
|
|
20
23
|
rm -Rf /usr/local/miniconda3/pkgs
|
21
|
-
|
24
|
+
. /etc/rbbt_environment
|
22
25
|
|
@@ -5,10 +5,12 @@
|
|
5
5
|
|
6
6
|
_small_version=`echo $RUBY_VERSION | cut -f 1,2 -d.`
|
7
7
|
|
8
|
-
[ -d /
|
8
|
+
[ -d /usr/local/scr/ruby-install ] || mkdir -p /usr/local/src/ruby-install
|
9
9
|
|
10
10
|
_prewd="$(pwd)"
|
11
|
-
cd /
|
11
|
+
cd /usr/local/scr/ruby-install
|
12
|
+
|
13
|
+
gem list --no-versions > gem.list
|
12
14
|
|
13
15
|
wget https://cache.ruby-lang.org/pub/ruby/$_small_version/ruby-${RUBY_VERSION}.tar.gz -O "ruby.tar.gz"
|
14
16
|
tar -xvzf ruby.tar.gz
|
@@ -16,10 +18,16 @@ cd ruby-*/
|
|
16
18
|
./configure --prefix=/usr/local --enable-shared
|
17
19
|
make && make install
|
18
20
|
|
21
|
+
cd ..
|
22
|
+
|
23
|
+
for p in `cat gem.list`; do
|
24
|
+
/usr/local/bin/gem install $p
|
25
|
+
done
|
26
|
+
|
19
27
|
unset _small_version
|
20
28
|
|
21
29
|
cd "$_prewd"
|
22
|
-
rm -Rf /tmp/ruby-install
|
30
|
+
#rm -Rf /tmp/ruby-install
|
23
31
|
|
24
32
|
#\curl -sSL https://get.rvm.io | bash -s stable
|
25
33
|
#source /etc/profile.d/rvm.sh
|
@@ -5,7 +5,8 @@
|
|
5
5
|
|
6
6
|
mkdir -p /opt/src/
|
7
7
|
cd /opt/src/
|
8
|
-
wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.48.tar.gz -O "tokyocabinet.tar.gz"
|
8
|
+
#wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.48.tar.gz -O "tokyocabinet.tar.gz"
|
9
|
+
wget "https://b2drop.bsc.es/index.php/s/5SP3wYCyNwFE2b3/download" -O "tokyocabinet.tar.gz"
|
9
10
|
tar -xvzf tokyocabinet.tar.gz
|
10
11
|
cd tokyocabinet-1.4.48
|
11
12
|
./configure --prefix=/usr/local
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Basic ubuntu setup
|
2
|
+
apt-get -y update
|
3
|
+
apt-get -y install software-properties-common
|
4
|
+
|
5
|
+
export DEBIAN_FRONTEND=noninteractive
|
6
|
+
|
7
|
+
apt-get -y install \
|
8
|
+
ruby ruby-dev \
|
9
|
+
git make gcc g++ cmake autotools-dev autoconf automake \
|
10
|
+
zlib1g-dev libbz2-dev libreadline-dev \
|
11
|
+
openssl \
|
12
|
+
libxml2-dev libfontconfig1-dev \
|
13
|
+
liblzma5 liblzma-dev libcurl4-openssl-dev \
|
14
|
+
build-essential zlib1g-dev libssl-dev libyaml-dev libffi-dev \
|
15
|
+
locales \
|
16
|
+
bash openssh-client wget curl rsync libtokyocabinet-dev
|
17
|
+
|
18
|
+
apt-get -y install \
|
19
|
+
python3 python3-pip python-is-python3
|
20
|
+
|
21
|
+
apt-get -y install \
|
22
|
+
r-base r-base-dev
|
23
|
+
|
24
|
+
gem install rbbt-util rbbt-sources
|
25
|
+
gem install RubyInline
|
26
|
+
|
27
|
+
gem install specific_install hoe minitest
|
28
|
+
gem specific_install -l https://github.com/mikisvaz/lockfile.git
|
29
|
+
gem specific_install -l https://github.com/mikisvaz/rubyinline.git
|
30
|
+
|
31
|
+
rm -Rf /usr/lib/ruby/gems/*/doc /usr/lib/ruby/gems/*/cache
|
32
|
+
|
33
|
+
grep rbbt_environment /etc/rbbt_environment || echo "[ -f ~/.rbbt/etc/environment ] && . ~/.rbbt/etc/environment" >> "/etc/rbbt_environment"
|
34
|
+
grep rbbt_environment /etc/profile || echo echo "source /etc/rbbt_environment" >> /etc/profile
|
35
|
+
|
36
|
+
|
37
|
+
echo $CUSTOM_SYSTEM_PACKAGES | sed 's/,/\n/g' | xargs apt-get -y install
|
@@ -1,68 +1,3 @@
|
|
1
|
-
#!/bin/bash -x
|
2
|
-
|
3
|
-
# INSTALL
|
4
|
-
# =======
|
5
|
-
|
6
|
-
#cat << 'EOF' > /etc/rbbt_environment
|
7
|
-
#_var_content(){
|
8
|
-
# var=$1
|
9
|
-
# eval echo "$"$(echo $var)
|
10
|
-
#}
|
11
|
-
#
|
12
|
-
#_append_with_colon(){
|
13
|
-
# var=$1
|
14
|
-
# value=$2
|
15
|
-
#
|
16
|
-
# current=`_var_content $var`
|
17
|
-
#
|
18
|
-
# if ! echo $current | grep "\(^\|:\)$value\(:\|$\)" >/dev/null 2>&1; then
|
19
|
-
# eval $(echo $var)="\"$current:$value\""
|
20
|
-
# fi
|
21
|
-
#}
|
22
|
-
#
|
23
|
-
#_append_with_space(){
|
24
|
-
# var=$1
|
25
|
-
# value=$2
|
26
|
-
#
|
27
|
-
# current=`_var_content $var`
|
28
|
-
#
|
29
|
-
# if ! echo $current | grep "\(^\| \)$value\( \|$\)" >/dev/null 2>&1; then
|
30
|
-
# eval $(echo $var)="\"$current:$value\""
|
31
|
-
# fi
|
32
|
-
#}
|
33
|
-
#
|
34
|
-
#_prepend_with_colon(){
|
35
|
-
# var=$1
|
36
|
-
# value=$2
|
37
|
-
#
|
38
|
-
# current=`_var_content $var`
|
39
|
-
#
|
40
|
-
# if ! echo $current | grep "\(^\|:\)$value\(:\|$\)" >/dev/null 2>&1; then
|
41
|
-
# eval $(echo $var)="\"$value:$current\""
|
42
|
-
# fi
|
43
|
-
#}
|
44
|
-
#
|
45
|
-
#_prepend_with_space(){
|
46
|
-
# var=$1
|
47
|
-
# value=$2
|
48
|
-
#
|
49
|
-
# current=`_var_content $var`
|
50
|
-
#
|
51
|
-
# if ! echo $current | grep "\(^\| \)$value\( \|$\)" >/dev/null 2>&1; then
|
52
|
-
# eval $(echo $var)="\"$value $current\""
|
53
|
-
# fi
|
54
|
-
#}
|
55
|
-
#
|
56
|
-
#_add_path(){
|
57
|
-
# _prepend_with_colon PATH "${1%/}"
|
58
|
-
#}
|
59
|
-
#
|
60
|
-
#_add_libpath(){
|
61
|
-
# _prepend_with_colon LD_LIBRARY_PATH "${1%/}"
|
62
|
-
# _prepend_with_colon LD_RUN_PATH "${1%/}"
|
63
|
-
#}
|
64
|
-
#EOF
|
65
|
-
|
66
1
|
# Basic system requirements
|
67
2
|
# -------------------------
|
68
3
|
apt-get -y update
|
@@ -71,7 +6,6 @@ apt-get -y install software-properties-common
|
|
71
6
|
apt-get -y update
|
72
7
|
apt-get -y update
|
73
8
|
DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
74
|
-
vim \
|
75
9
|
wget \
|
76
10
|
libc6 \
|
77
11
|
time numactl xvfb \
|
@@ -85,6 +19,7 @@ DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
|
85
19
|
tcsh gawk \
|
86
20
|
ansible \
|
87
21
|
pandoc \
|
22
|
+
locales \
|
88
23
|
libtbb-dev
|
89
24
|
|
90
25
|
#add-apt-repository ppa:george-edison55/cmake-3.x
|
@@ -96,6 +31,8 @@ apt-get -y install cmake
|
|
96
31
|
apt-get -y install \
|
97
32
|
libgmp-dev libboost-all-dev
|
98
33
|
|
34
|
+
apt-get install ruby ruby-dev
|
35
|
+
|
99
36
|
# This link was broken for some reason
|
100
37
|
rm /usr/lib/R/bin/Rserve
|
101
38
|
ln -s /usr/lib/R/site-library/Rserve/libs/Rserve /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.
|
4
|
+
version: 0.2.0
|
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: 2025-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|
@@ -42,10 +42,12 @@ files:
|
|
42
42
|
- share/provision_scripts/Dockerfile.R-packages
|
43
43
|
- share/provision_scripts/R.sh
|
44
44
|
- share/provision_scripts/R_custom.sh
|
45
|
+
- share/provision_scripts/R_packages.sh
|
45
46
|
- share/provision_scripts/alpine_basic_setup.sh
|
46
47
|
- share/provision_scripts/alpine_extended_setup.sh
|
47
48
|
- share/provision_scripts/alpine_setup.sh
|
48
49
|
- share/provision_scripts/bootstrap.sh
|
50
|
+
- share/provision_scripts/custom_gems.sh
|
49
51
|
- share/provision_scripts/functions.sh
|
50
52
|
- share/provision_scripts/gem.sh
|
51
53
|
- share/provision_scripts/hacks.sh
|
@@ -57,6 +59,7 @@ files:
|
|
57
59
|
- share/provision_scripts/ruby_custom.sh
|
58
60
|
- share/provision_scripts/slurm_loopback.sh
|
59
61
|
- share/provision_scripts/tokyocabinet.sh
|
62
|
+
- share/provision_scripts/ubuntu_basic_setup.sh
|
60
63
|
- share/provision_scripts/ubuntu_setup.sh
|
61
64
|
- share/provision_scripts/user.sh
|
62
65
|
- share/provision_scripts/variables.sh
|
@@ -79,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
82
|
- !ruby/object:Gem::Version
|
80
83
|
version: '0'
|
81
84
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.5.23
|
83
86
|
signing_key:
|
84
87
|
specification_version: 4
|
85
88
|
summary: Build docker and Vagrant (VM) images
|