vocker 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/vocker/docker_client.rb +3 -1
- data/lib/vocker/version.rb +1 -1
- data/spec/unit/docker_client_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44a844c870a820f565be23e2d3a34a949e5e60e3
|
4
|
+
data.tar.gz: 42043288ffa6271f3072be1050551eafaf2f769c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403e7e1b1e34b03daf10e6c98955954af31a9bf8ffc4f305361910d8501ac1589e2281c213839f5a9cbc3f89ffadc86cc244483e540fa84d2604f61fc8eb5f62
|
7
|
+
data.tar.gz: b23c38a0b8b55f7277938e82b5d3aa19d2af3fcac36305eae3c8d3d46c89b0903aa6fc20b81c02288f6231725f7025776e887f198c2ebead2628d054bdf23e16
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [0.3.0](https://github.com/fgrehm/vocker/compare/v0.2.1...v0.3.0) (September 7, 2013)
|
2
|
+
|
3
|
+
- Add support for Docker's `-dns` parameter
|
4
|
+
|
1
5
|
## [0.2.1](https://github.com/fgrehm/vocker/compare/v0.2.0...v0.2.1) (September 5, 2013)
|
2
6
|
|
3
7
|
- Configure Docker to automatically restart previously running containers on boot [GH-4]
|
data/Gemfile.lock
CHANGED
data/lib/vocker/docker_client.rb
CHANGED
@@ -50,9 +50,11 @@ module VagrantPlugins
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def create_container(config)
|
53
|
+
args = "-cidfile=#{config[:cidfile]} -d"
|
54
|
+
args << " -dns=#{config[:dns]}" if config[:dns]
|
53
55
|
@machine.communicate.sudo %[
|
54
56
|
rm -f #{config[:cidfile]}
|
55
|
-
docker run
|
57
|
+
docker run #{args} #{config[:image]} #{config[:cmd]}
|
56
58
|
]
|
57
59
|
end
|
58
60
|
end
|
data/lib/vocker/version.rb
CHANGED
@@ -49,6 +49,13 @@ describe VagrantPlugins::Vocker::DockerClient do
|
|
49
49
|
expect(communicator).to have_received.sudo(with{|cmd| cmd =~ /-cidfile=\/foo\/bla/})
|
50
50
|
end
|
51
51
|
|
52
|
+
it 'allows a dns to be specified' do
|
53
|
+
stub(communicator).test(with{|cmd| cmd =~ /docker ps/}) { false }
|
54
|
+
containers['mysql'][:dns] = '127.0.0.1'
|
55
|
+
subject.run containers
|
56
|
+
expect(communicator).to have_received.sudo(with{|cmd| cmd =~ /-dns=127\.0\.0\.1/})
|
57
|
+
end
|
58
|
+
|
52
59
|
context 'when the container already exists' do
|
53
60
|
before do
|
54
61
|
stub(communicator).test(with{|cmd| cmd =~ /docker ps/}) { true }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vocker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Rehm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|