chef-provisioning-docker 1.0.0.beta.2 → 1.0.0.beta.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de2e1b506ecac1d6dd61ca787b3339e85cced92f
|
4
|
+
data.tar.gz: cc90ea490c81250ff1c43c560bd0554357430879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa6147b7851e58ce5ff90c36e9e85defbddd796ff8539d798e0b0abfa6da5c223e3e1506cfd638009c88332bff5b29d91994f3911740b2e7599dd2f37cdfe8e5
|
7
|
+
data.tar.gz: dfe8d1b87314a24aa8c68dbbd8c592d822c8c84a69b49337ef3b9a5db1381d885acb5166f0170ba38f2c067efb62a35a278ac5b957134d9771e5c8db3d151b1c
|
data/README.md
CHANGED
@@ -517,8 +517,10 @@ class DockerRunOptions
|
|
517
517
|
config["HostConfig"]["Binds"] ||= []
|
518
518
|
config["HostConfig"]["Binds"] += binds
|
519
519
|
end
|
520
|
-
|
521
|
-
|
520
|
+
unless volumes.empty?
|
521
|
+
config["Volumes"] ||= []
|
522
|
+
config["Volumes"] += volumes
|
523
|
+
end
|
522
524
|
end
|
523
525
|
# --volume-driver="" Container's volume driver
|
524
526
|
cli_option :volume_driver, api: "HostConfig/VolumeDriver"
|
@@ -81,7 +81,7 @@ module DockerDriver
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def download_file(path, local_path)
|
84
|
-
file = File.open(local_path, '
|
84
|
+
file = File.open(local_path, 'wb')
|
85
85
|
begin
|
86
86
|
file.write(read_file(path))
|
87
87
|
file.close
|
@@ -91,7 +91,7 @@ module DockerDriver
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def upload_file(local_path, path)
|
94
|
-
write_file(path, IO.read(local_path))
|
94
|
+
write_file(path, IO.read(local_path, mode: "rb"))
|
95
95
|
end
|
96
96
|
|
97
97
|
def make_url_available_to_remote(local_url)
|
@@ -146,13 +146,6 @@ module DockerDriver
|
|
146
146
|
end
|
147
147
|
|
148
148
|
end
|
149
|
-
else
|
150
|
-
old_uri = uri.dup
|
151
|
-
# Find out our external network address of the URL and report it
|
152
|
-
# to the container in case it has no DNS (often the case).
|
153
|
-
uri.scheme = 'http' if 'chefzero' == uri.scheme && uri.host == 'localhost'
|
154
|
-
uri.host = Socket.getaddrinfo(uri.host, uri.scheme, nil, :STREAM)[0][3]
|
155
|
-
Chef::Log.debug("Looked up IP address of #{old_uri} and modified URL to point at it: #{uri}")
|
156
149
|
end
|
157
150
|
|
158
151
|
uri.to_s
|