rbbt-image 0.1.13 → 0.1.14

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/run_rbbt_docker.rb +14 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8123bdaafa5d69e42309938c73c1b4a5a0be39ef
4
- data.tar.gz: aa239fa5e61c0545b9c13fe05e7f80aaaf24f807
3
+ metadata.gz: 333ed8343fe35a750c1b7c35245987b6c0ba2d27
4
+ data.tar.gz: 7d44691b0cf8ec502e38d4eaadf021521b3d0d52
5
5
  SHA512:
6
- metadata.gz: 399d4d94aef56aad6dfb58b9e8a4683056495883cf1172b67b047649f181d44a673a162be65c027cb0bb96d3ff8d361baaad29b4e9748de48f2e922a4bbe0de7
7
- data.tar.gz: afe7f9ce536106b0daa72f6f567dd66321c794fa741b5d9bba4fa8ca16b763cae9a7e8063f5fbfb5d53df437a2fe44d54b43e482621bc121ea20863155ca1ebf
6
+ metadata.gz: 4ae0bb951df2edcd31c800470165f8df8205f5a33ff32fea2c27059c241077d17bc7cafb630650c7060edc3cace6d934ec08841d0fe57b64ef1a4ecd69d7a6fd
7
+ data.tar.gz: 112c761df3151f9482eaf4a77ea4561c21dee2805fbeeafac085c5a4ecb3e022b065e20445e8762f9c62363a5ab006ac8900bba07e9f3f7b50d6fae09e2819ef
@@ -18,6 +18,7 @@ Infrastruture definition comes in YAML.
18
18
  --log* Log level
19
19
  -d--dry_run Dry run
20
20
  -n--name* Container name
21
+ -m--extra_mounts* Extra mounts separated by ','
21
22
  EOF
22
23
 
23
24
 
@@ -59,6 +60,19 @@ cmd_args.collect!{|a| '"' << a << '"' }
59
60
  infrastructure_file = Rbbt.etc.infrastructure[infrastructure_file+'.yaml'].find unless File.exists? infrastructure_file
60
61
  infrastructure = File.open(infrastructure_file){|io| YAML.load io }
61
62
 
63
+ IndiferentHash.setup(infrastructure)
64
+
65
+ if options[:extra_mounts]
66
+ options[:extra_mounts].split(',').each do |pair|
67
+ target, _sep, source = pair.partition(":")
68
+ mounts = infrastructure[:mounts] || {}
69
+ mounts[target] = source
70
+ infrastructure[:mounts] = mounts
71
+ end
72
+ end
73
+
74
+
75
+
62
76
  RbbtDocker.load_infrastructure(infrastructure, cmd, cmd_args, docker_args, options)
63
77
 
64
78
  #docker_args.collect!{|a| '"' << a << '"' }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez