bigrig 0.2.0 → 0.2.1
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/Gemfile.lock +1 -1
- data/lib/bigrig/runner.rb +3 -8
- data/lib/bigrig/version.rb +1 -1
- 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: b45105f59905374c0229e4ae83c1bdd37614242f
|
|
4
|
+
data.tar.gz: 152ce1cc2b69fcbb0965086d17d6cba1cdd5d661
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d373c76d6031b6c61ce612b32131c40b572d89a7f3dc4ea64be110a288af7091a57c9d64af9672fb1bd84a326cfc93b16e5c3e53a2c243d20aaf70b669e2024e
|
|
7
|
+
data.tar.gz: e480b7fdfff35ddad6edab2bce175e27ec59ed4176edc632c0689c6fd5b01c76ce80ddaad2fcbc55c34335524dfdc9470694d1c4b2b05a0e45692711e8869a69
|
data/Gemfile.lock
CHANGED
data/lib/bigrig/runner.rb
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
module Bigrig
|
|
2
2
|
class Runner
|
|
3
|
-
def self.start(container)
|
|
4
|
-
puts "Starting #{container.name}"
|
|
5
|
-
puts DockerAdapter.run docker_opts_for container
|
|
6
|
-
end
|
|
7
|
-
|
|
8
3
|
def initialize(containers)
|
|
9
4
|
@containers = containers
|
|
10
5
|
end
|
|
@@ -36,10 +31,10 @@ module Bigrig
|
|
|
36
31
|
end
|
|
37
32
|
|
|
38
33
|
def docker_opts(step)
|
|
39
|
-
step.map { |c|
|
|
34
|
+
step.map { |c| docker_opts_for c }
|
|
40
35
|
end
|
|
41
36
|
|
|
42
|
-
def
|
|
37
|
+
def docker_opts_for(container)
|
|
43
38
|
{ env: container.env,
|
|
44
39
|
name: container.name,
|
|
45
40
|
ports: container.ports,
|
|
@@ -50,7 +45,7 @@ module Bigrig
|
|
|
50
45
|
image_id: image_id(container) }
|
|
51
46
|
end
|
|
52
47
|
|
|
53
|
-
def
|
|
48
|
+
def image_id(container)
|
|
54
49
|
if container.path
|
|
55
50
|
build container.path
|
|
56
51
|
else
|
data/lib/bigrig/version.rb
CHANGED