rbbt-util 5.26.43 → 5.26.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/hpc.rb +3 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59e25f4416bea39f3d9f7a88459ebd7f3beb0616ba5030b8ac225dcef9106288
4
- data.tar.gz: 37a031122ec367f6a6f83e33039f26ea21cb2da73df6c251af56bc4568e1ad13
3
+ metadata.gz: ee472bbeb2d0541575f941de8d4449565c0b5749edba5e939a703f006dfbf9dd
4
+ data.tar.gz: cbbf92b94071ec10e304ccec236458b12e19ea3ffad22ddc07b30250bbb6a4d0
5
5
  SHA512:
6
- metadata.gz: 21622d6a14e58ea873b8e4205bc041b47897d8652b414a70544dceb36a0f3f65322c738632f6583c4064d07b392b695a668a94efdb65047ff920014c059163a3
7
- data.tar.gz: 4b7df1c8f10e5aaa30789ec4bd3d1b2a3513ba4d0e5a3a1db5cf94e94876953cdff2518888cde57a204389c26390921e0620827f6145f57780109ff63ccf76b3
6
+ metadata.gz: 146f93aa1f32c53b88097f1dfa75721c6384395dd2f09c3a9240b04918250d42c32e6ef7b4420d95d7ef18ede20226c2f762ef3a04fec636f48c4fd99bf5db2b
7
+ data.tar.gz: c302243845ea9de591ef0486d8e80b44b757103a50a0edf51b59103e8d48a0e44cc3a3695198412cfa091f2ad23ba1110d9f9faf5b08c277a7e091a1839b2f41
data/lib/rbbt/hpc.rb CHANGED
@@ -125,7 +125,7 @@ module load intel/2018.1
125
125
  module load singularity
126
126
  PROJECTS_ROOT="/gpfs/projects/bsc26/"
127
127
  SINGULARITY_IMG="$PROJECTS_ROOT/rbbt.singularity.img"
128
- SINGULARITY_OVERLAY_DIR="$PROJECTS_ROOT/rbbt.singularity.overlays"
128
+ SINGULARITY_OPT_DIR="$PROJECTS_ROOT/singularity_opt/"
129
129
  SINGULARITY_RUBY_INLINE="$HOME/.singularity_ruby_inline"
130
130
  mkdir -p "$SINGULARITY_RUBY_INLINE"
131
131
  EOF
@@ -182,9 +182,6 @@ echo "/scratch/tmp/rbbt/projects/rbbt/workflows/" > $CONTAINER_DIR/.rbbt/etc/wor
182
182
  # Copy image
183
183
  rsync -avz "$SINGULARITY_IMG" "$CONTAINER_DIR/rbbt.singularity.img" 1>&2
184
184
  SINGULARITY_IMG="$CONTAINER_DIR/rbbt.singularity.img"
185
-
186
- rsync -avz "$SINGULARITY_OVERLAY_DIR"/ "$CONTAINER_DIR/rbbt.singularity.overlays/" 1>&2
187
- SINGULARITY_OVERLAY_DIR="$CONTAINER_DIR/rbbt.singularity.overlays"
188
185
  EOF
189
186
  end
190
187
 
@@ -206,11 +203,10 @@ EOF
206
203
  exec_cmd = %(env _JAVA_OPTIONS="-Xms1g -Xmx${MAX_MEMORY}m")
207
204
 
208
205
  if singularity
209
- singularity_exec = %(singularity exec -e $(for f in `ls $SINGULARITY_OVERLAY_DIR/*.img`; do echo -n --overlay "\"$f\" "; done) )
206
+ singularity_exec = %(singularity exec -e -B $SINGULARITY_OPT:/singularity_opt/ -B /apps/)
210
207
 
211
208
  if contain
212
209
  singularity_exec << %( -C -H "$CONTAINER_DIR" \
213
- -B /apps/ \
214
210
  -B /scratch/tmp \
215
211
  -B "$SINGULARITY_RUBY_INLINE":"$CONTAINER_DIR/.ruby_inline":rw \
216
212
  -B ~/git:"$CONTAINER_DIR/git":ro \
@@ -221,7 +217,7 @@ EOF
221
217
  "$SINGULARITY_IMG")
222
218
  exec_cmd << ' TMPDIR="$CONTAINER_DIR/.rbbt/tmp" '
223
219
  else
224
- singularity_exec += %( -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$HOME/.ruby_inline":rw "$SINGULARITY_IMG" )
220
+ singularity_exec += %( -B "$SINGULARITY_RUBY_INLINE":"$HOME/.ruby_inline":rw "$SINGULARITY_IMG" )
225
221
  end
226
222
 
227
223
  if development
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.26.43
4
+ version: 5.26.44
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-07-24 00:00:00.000000000 Z
11
+ date: 2019-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake