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.
- checksums.yaml +4 -4
- data/bin/run_rbbt_docker.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 333ed8343fe35a750c1b7c35245987b6c0ba2d27
|
|
4
|
+
data.tar.gz: 7d44691b0cf8ec502e38d4eaadf021521b3d0d52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ae0bb951df2edcd31c800470165f8df8205f5a33ff32fea2c27059c241077d17bc7cafb630650c7060edc3cace6d934ec08841d0fe57b64ef1a4ecd69d7a6fd
|
|
7
|
+
data.tar.gz: 112c761df3151f9482eaf4a77ea4561c21dee2805fbeeafac085c5a4ecb3e022b065e20445e8762f9c62363a5ab006ac8900bba07e9f3f7b50d6fae09e2819ef
|
data/bin/run_rbbt_docker.rb
CHANGED
|
@@ -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 << '"' }
|