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: 08110106616725e446a740a4a3a309ab9afca476
4
- data.tar.gz: d35e453ec12ac3b2a2fcb33999fcb4d3014d3fc3
3
+ metadata.gz: de2e1b506ecac1d6dd61ca787b3339e85cced92f
4
+ data.tar.gz: cc90ea490c81250ff1c43c560bd0554357430879
5
5
  SHA512:
6
- metadata.gz: 664c9d9ff139e4f84425b2f5561053c4bf7da9fc610d280830575dcf768401a1febfc84a2c7fb4d3d3aebc1adbd3ca7d66a530a4b44488757ea49e009f13bb05
7
- data.tar.gz: 81605d7138ce4f1b95a7725ec4748af023811c768bfd181676a94b9fd680b258ad01879292f0897a6fbce56d4a1f4e077f1d43d2ef0ee0318f0cd040fcf1132e
6
+ metadata.gz: fa6147b7851e58ce5ff90c36e9e85defbddd796ff8539d798e0b0abfa6da5c223e3e1506cfd638009c88332bff5b29d91994f3911740b2e7599dd2f37cdfe8e5
7
+ data.tar.gz: dfe8d1b87314a24aa8c68dbbd8c592d822c8c84a69b49337ef3b9a5db1381d885acb5166f0170ba38f2c067efb62a35a278ac5b957134d9771e5c8db3d151b1c
data/README.md CHANGED
@@ -96,5 +96,5 @@ end
96
96
  ```
97
97
 
98
98
  This will create a docker container based on Ubuntu 14.04 and
99
- then execute the Apache recipe and run the /usr/sbin/httpd command
99
+ then execute the openssh recipe and run the /usr/sbin/sshd command
100
100
  as the container's run command.
@@ -517,8 +517,10 @@ class DockerRunOptions
517
517
  config["HostConfig"]["Binds"] ||= []
518
518
  config["HostConfig"]["Binds"] += binds
519
519
  end
520
- config["Volumes"] ||= []
521
- config["Volumes"] += volumes
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, 'w')
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
@@ -1,7 +1,7 @@
1
1
  class Chef
2
2
  module Provisioning
3
3
  module DockerDriver
4
- VERSION = '1.0.0.beta.2'
4
+ VERSION = '1.0.0.beta.3'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.2
4
+ version: 1.0.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Duffield