fidoci 0.1.3 → 0.1.4

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/fidoci/env.rb +10 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7376579b9734c2c55bd22fa47139277b1a801e28
4
- data.tar.gz: ab18ff92963240e6f38640c5a4da61bc8ecc761f
3
+ metadata.gz: 543cde1011ef2c3f6749ed894edbc673ae334c30
4
+ data.tar.gz: dfef4c56ec29b5fd4167a23ef0ea9b4e0797d79c
5
5
  SHA512:
6
- metadata.gz: 0ad100609568c6157d8c326300d1db2470dab6b0cb04bbdb4e4d9e0eda20b976164c0c526069fa5cc488e096a159bcbeb6bc4696163de5aa4ce8dad37624ae2c
7
- data.tar.gz: de1b6c8ffd97e76db0741009279a2b6cf2bcc338b8b9f14ce4cf747f7802658105e7645801a581deb683d94ff31bd89a1971a321cdc3331fcee5d99fa963a449
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.3
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 00:00:00.000000000 Z
11
+ date: 2015-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api