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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce3c6c6b47fb223adc545bc3d9c712d3e77d0080
4
- data.tar.gz: 6be0707de349afcb33c262d730a3a7082cc26ede
3
+ metadata.gz: 44a844c870a820f565be23e2d3a34a949e5e60e3
4
+ data.tar.gz: 42043288ffa6271f3072be1050551eafaf2f769c
5
5
  SHA512:
6
- metadata.gz: 47c119afb9e4be795f10e3879b5feb40948217f3f3c7104c64191dd2cb9a3728786b1baada1d5728c118b68884f7b0e6375520ef465dc93f15dd574fcace328c
7
- data.tar.gz: b2fedef42a8d17ed5a4fed5391e2e77c00b328a1baaaa8f69a8407bf4a5377acebd0fc08e9318047fbeb118a375c3a681094d7a215e5d4df77b6dc350f209b65
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
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- vocker (0.2.1)
16
+ vocker (0.3.0)
17
17
 
18
18
  GEM
19
19
  remote: https://rubygems.org/
@@ -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 -cidfile=#{config[:cidfile]} -d #{config[:image]} #{config[:cmd]}
57
+ docker run #{args} #{config[:image]} #{config[:cmd]}
56
58
  ]
57
59
  end
58
60
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Vocker
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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.2.1
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-06 00:00:00.000000000 Z
11
+ date: 2013-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler