vx-lib-container 0.6.2 → 0.6.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c3ae92723dcac93b848a431753f45d0e2e02234
4
- data.tar.gz: 7943d6f503a362c3545938df7e0b6b4b850e2868
3
+ metadata.gz: 95bb0ab41911c4411b483a91864835f1371f8dde
4
+ data.tar.gz: 1c01494358d112dec7c241534ecd86134dfbd1fa
5
5
  SHA512:
6
- metadata.gz: 4b009d564f78b8b85c4bf3b47f5dad1f0517ca5d1d3bc1d3400378a232abd938796168fbffff629a07733d561055fe32a0301f6eccdd445d4ef8b232e5dcca0d
7
- data.tar.gz: 5bddf1cef70a4d8caccdee6613603d06af0a925492289ee43e7388d146bf8abe5ebe524cfde7034bc656b26b455ceea16ce035f27fcbde8ffd19a150a7c117bf
6
+ metadata.gz: 3506d97e2b7a888cd6a5b4921aa1d7c95d427af872af7528d354af469475c49212a1016179e1f7f182124cf705fc92c23b98e1111ae718c9fedd67186077b308
7
+ data.tar.gz: d4f12a9ec2e2fcc95db2b39f84bbb54d296912bc279fefeb86d055422d3611a6c37061ac8ac2e0224ad6bc14ad6124ce52f52ee8757e1c782b7d48ec065edb6d
@@ -18,12 +18,13 @@ module Vx
18
18
  attr_reader :user, :password, :init, :image, :remote_dir, :memory, :memory_swap
19
19
 
20
20
  def initialize(options = {})
21
- @user = options[:user] || "vexor"
22
- @password = options[:password] || "vexor"
23
- @init = options[:init] || %w{ /sbin/my_init }
24
- @image = options[:image] || "vexor/trusty:2.0.1"
25
- @memory = options[:memory].to_i
26
- @memory_swap = options[:memory_swap].to_i
21
+ @user = options[:user] || "vexor"
22
+ @password = options[:password] || "vexor"
23
+ @init = options[:init] || %w{ /sbin/my_init }
24
+ @image = options[:image] || "vexor/trusty:2.0.1"
25
+ @memory = options[:memory].to_i
26
+ @memory_swap = options[:memory_swap].to_i
27
+ @container_opts = options[:container_opts] || {}
27
28
  end
28
29
 
29
30
  def start(&block)
@@ -66,7 +67,7 @@ module Vx
66
67
  def start_container(&block)
67
68
  container =
68
69
  with_retries ::Excon::Errors::SocketError, ::Docker::Error::TimeoutError, limit: 5, sleep: 3 do
69
- ::Docker::Container.create create_container_options
70
+ ::Docker::Container.create create_container_options.merge(@container_opts)
70
71
  end
71
72
 
72
73
  container.start
@@ -1,7 +1,7 @@
1
1
  module Vx
2
2
  module Lib
3
3
  module Container
4
- VERSION = "0.6.2"
4
+ VERSION = "0.6.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-lib-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.2.2
133
+ rubygems_version: 2.4.5
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: summary