pero 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pero/docker.rb +13 -11
- data/lib/pero/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc26e00bd55e4f440b1093cb50d648c692431e242aaad76ee5a75b4861a569e
|
4
|
+
data.tar.gz: 993f4b79e420e78cfdebc1f124fa066b70f2b562b4948affa768819eb212ee5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b84c3ad2efb6a369fd8d3edf4a80076d107dd9270a41840e5ff41ca15549aeb360ba2318d2568237f279bfb941b6b97963bbace51e15771584c38dc67dc20d7d
|
7
|
+
data.tar.gz: ac0092e216b422dd99afdede3175063d267c92e09a10cdcfa207d7a3e514a5d4412ba57900c6bf1efbcb049c139ddbc345ab640cd113f93866820dfa95603466
|
data/Gemfile.lock
CHANGED
data/lib/pero/docker.rb
CHANGED
@@ -65,17 +65,19 @@ module Pero
|
|
65
65
|
raise "can't start container" unless container
|
66
66
|
begin
|
67
67
|
Retryable.retryable(tries: 20, sleep: 5) do
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
68
|
+
begin
|
69
|
+
https = Net::HTTP.new('localhost', container.info["Ports"].first["PublicPort"])
|
70
|
+
https.use_ssl = true
|
71
|
+
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
72
|
+
Pero.log.debug "start server health check"
|
73
|
+
https.start {
|
74
|
+
response = https.get('/')
|
75
|
+
Pero.log.debug "puppet http response #{response}"
|
76
|
+
}
|
77
|
+
rescue => e
|
78
|
+
Pero.log.debug e.inspect
|
79
|
+
raise e
|
80
|
+
end
|
79
81
|
end
|
80
82
|
rescue
|
81
83
|
Pero.log.error "can't start container.please check [ docker logs #{container.info["id"]} ]"
|
data/lib/pero/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pyama86
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|