fidoci 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fidoci/env.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 543cde1011ef2c3f6749ed894edbc673ae334c30
|
4
|
+
data.tar.gz: dfef4c56ec29b5fd4167a23ef0ea9b4e0797d79c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ca334c1d3b25052d0a92daacfded2c2f518c7952003d758e17bf05f20c9aa703fe932d3d1ac06b9ca3154ec065cd271eb601e586ed1b31e61fe11514188910d
|
7
|
+
data.tar.gz: 176c8238e6f2bc3a171fc08d30ad1114e76ab3da7ad43dd6c5dba90bdfcdb3d9a85108921e48286d559d2d2881a8063915de572bc92ce7ccb759287a767e8b66
|
data/lib/fidoci/env.rb
CHANGED
@@ -165,6 +165,16 @@ module Fidoci
|
|
165
165
|
config_params(params, link_config)
|
166
166
|
|
167
167
|
debug "Creating container #{link_container_name}..."
|
168
|
+
|
169
|
+
unless Docker::Image.exist?(link_config['image'])
|
170
|
+
# obtain image
|
171
|
+
link_image_name, link_image_tag = link_config['image'].split(':')
|
172
|
+
link_image_tag = 'latest' unless link_image_tag
|
173
|
+
|
174
|
+
full_image_name = "#{link_image_name}:#{link_image_tag}"
|
175
|
+
Docker::Image.create(fromImage: full_image_name)
|
176
|
+
end
|
177
|
+
|
168
178
|
container = Docker::Container.create(params)
|
169
179
|
end
|
170
180
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fidoci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Dolezal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|