minke 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/minke/docker/service_discovery.rb +8 -1
- data/lib/minke/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjkyZDZjNGJhMDcwOTcyMDNlM2E4OGMxMjQ1OGVjMjM1MGJkYzlkNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzE3MTZkYTdiNjk3MWU1ODBjN2U5NTFlMzAyNzA3ZWFlNmRjZTYyMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjdiODI0YWNlYThjZTc3ZjI3Mzc2NWJkZDMxNjAxODk5ZTMxYmEwMmJhMDJk
|
10
|
+
YWQ0NjZhYjhiNTI3NjViNWRlZWU4ZWYxZDVjYzRjNGY1YTUyOTQ0Mjc2NGFi
|
11
|
+
MjI0NzAwYTI2Njg1MDEwZTYyMzVlOWI4MjNmZWJkOTlmZGJmYTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTUwNmMwY2Q5YTg2NmUzZjJiZDQ0ZDVmY2QwMjY5Y2UwZTZhMjhhNjE1OTFl
|
14
|
+
MGE2MGMwMzc4NDEzMTExZDhhODI3OWMzYzhhNzczZDdhMTAyMGE2ODVkZjlk
|
15
|
+
MWM1YTIxOTQzOTZhYWQxMzgyMzc1ZWY1OWZiZTFmNWYxNGQ1ZGU=
|
@@ -17,7 +17,14 @@ module Minke
|
|
17
17
|
# - task: :run, :cucumber search either the run or cucumber section of the config
|
18
18
|
def public_address_for container_name, private_port, task
|
19
19
|
compose = Minke::Docker::DockerCompose.new @config.compose_file_for(task), Minke::Docker::SystemRunner.new
|
20
|
-
compose.public_address container_name, private_port
|
20
|
+
public_address = compose.public_address container_name, private_port
|
21
|
+
|
22
|
+
ip = @docker_runner.get_docker_ip_address
|
23
|
+
if ip != "127.0.0.1" && ip != "0.0.0.0" && ip != nil
|
24
|
+
public_address.gsub!('0.0.0.0', ip)
|
25
|
+
end
|
26
|
+
|
27
|
+
public_address
|
21
28
|
end
|
22
29
|
end
|
23
30
|
end
|
data/lib/minke/version.rb
CHANGED