vx-container_connector 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7435b9a4e6d6ce7458ebabd224bf926078ef5330
4
- data.tar.gz: 6604c1216f042f0521aa72a045dbdf51f90e2c65
3
+ metadata.gz: 04f9e250fd6969c939272741738bfb4cb74c0338
4
+ data.tar.gz: db5dc622092d18b6b8783cdf2878f890802497c2
5
5
  SHA512:
6
- metadata.gz: aca14286497b28207d958aa8178530bf4b07d3b1ca18d39e4f1330887a45d4d9335d62f24cdf0579794a72b1ea4e90bee6ad07179906be94e3d49c10834c605c
7
- data.tar.gz: c467ca3a5646572caadf4031da44a0daf4350e597cc3c07e877a38eda78a86dc0c47f4b3afdedeed0bcb87b8f332b5c21bf3903faacaf77f5ebf37efe34d9f9d
6
+ metadata.gz: 7f90401633becadb280e13ac6bdfca379a82c62f7a8c59ce60899c3c5103580d95bdd87fea37b5ce3d90624a1ecfbc4128d985b30ca55d84831a0bf701a3b21e
7
+ data.tar.gz: c69aca16579a5ae2ee394bcbdc08f365abb1a34f9471a6765ad8aa76549b9a27494ea044dd67136f1f7a4fdc926a1f022411bc1055a4f85b7e0133429d16153e
@@ -60,7 +60,7 @@ module Vx
60
60
  ssh_host: host
61
61
  }
62
62
 
63
- with_retries ::Net::SSH::AuthenticationFailed, Errno::ECONNREFUSED, Errno::ETIMEDOUT, limit: 10, sleep: 5 do
63
+ with_retries ::Net::SSH::AuthenticationFailed, Errno::ECONNREFUSED, Errno::ETIMEDOUT, limit: 20, sleep: 1 do
64
64
  instrument("starting_ssh_session", instrumentation)
65
65
  open_ssh(host, user, ssh_options) do |ssh|
66
66
  yield Spawner.new(container, ssh, remote_dir)
@@ -79,14 +79,11 @@ module Vx
79
79
  container_options: start_container_options,
80
80
  }
81
81
 
82
- with_retries ::Docker::Error::NotFoundError, Excon::Errors::SocketError, limit: 3, sleep: 3 do
83
- instrument("start_container", instrumentation) do
84
- container.start start_container_options
85
- end
82
+ instrument("start_container", instrumentation) do
83
+ container.start start_container_options
86
84
  end
87
85
 
88
86
  begin
89
- sleep 3
90
87
  yield container
91
88
  ensure
92
89
  instrument("kill_container", instrumentation) do
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module ContainerConnector
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-container_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api