docker-provider 0.0.1 → 0.0.2

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: 4ecc63749fe1c7951f04eecbcedc6579fcec0db7
4
- data.tar.gz: fbdb3556de90b576e1b3613e4de96791599963fc
3
+ metadata.gz: 75f8540cb7ab18e1d6592fc46a2dd3ef6675f766
4
+ data.tar.gz: d098ade4f9e92f805ac2f479b354e4dc436c2be6
5
5
  SHA512:
6
- metadata.gz: 575626e4f52623abc118e4feee9df5faa2f4a82c1adacd449b2c657b38e1a07ecd233f24bfd381d8a9c64259675425f66adbf82dbe4e33b35bd1026043e1eee1
7
- data.tar.gz: 8f457fe8e793b59ad56c8e575cb7d2497a65d96a5545f23390e5c5e8ac053bbbc9e35cbd09b04e30a894965dd4b050c6757d0692d67aa9aae16311b92fe39c50
6
+ metadata.gz: 4582b7287bad91333f450a779ad56ee9db01df6511ca8386146485c8e1a34747a32fd1a2439679b16663b862047e45475b766ad55c0d41e03fd05d15374347ad
7
+ data.tar.gz: 83c0bc91abbf40202ba6944d76910bbf845fe6b39ad8754ec53e112d372c1bee2fc71cb7f93c2b7a989a18a8d29a297e22d34fe14870a7f375d8c73ffd3c2f31
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.2](https://github.com/fgrehm/docker-provider/compare/v0.0.1...v0.0.2) (November 5, 2013)
2
+
3
+ - Fix provisioning with Vagrant's built in provisioners
4
+
1
5
  ## 0.0.1 (November 5, 2013)
2
6
 
3
7
  - Initial public release.
data/Gemfile.lock CHANGED
@@ -50,7 +50,7 @@ GIT
50
50
  PATH
51
51
  remote: .
52
52
  specs:
53
- docker-provider (0.0.1)
53
+ docker-provider (0.0.2)
54
54
 
55
55
  GEM
56
56
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -75,8 +75,10 @@ There's probably a whole lot of limitations right now but during these early day
75
75
  of the plugin I can tell you for sure that some things are probably not going to
76
76
  work as you might expect. For instance forwarded ports, synced folders and containers'
77
77
  hostnames will not be reconfigured on `vagrant reload`s if they have changed and
78
- the plugin **_will not give you any kind of warning or message_**. Forwarded ports
79
- automatic collision handling is **_not supported as well_**.
78
+ the plugin **_will not give you any kind of warning or message_**. For instance,
79
+ if you change your Puppet manifests / Chef cookbooks paths (which are shared /
80
+ synced folders under the hood), **_you'll need to start from scratch_**. Oh,
81
+ and forwarded ports automatic collision handling is **_not supported as well_**.
80
82
 
81
83
  The plugin also requires Docker's executable to be available on current user's `PATH`
82
84
  and that the current user has been added to the `docker` group since we are not
data/example/Vagrantfile CHANGED
@@ -21,10 +21,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
21
21
  end
22
22
  end
23
23
 
24
- # TODO: This is a container that gets provisioned with Puppet
24
+ # This is a container that gets provisioned with Puppet
25
25
  config.vm.define 'precise' do |node|
26
26
  node.vm.box = 'precise'
27
27
  node.vm.box_url = 'http://bit.ly/vagrant-docker-precise'
28
+
29
+ node.vm.provision :puppet do |puppet|
30
+ puppet.manifests_path = "."
31
+ puppet.manifest_file = "site.pp"
32
+ end
28
33
  end
29
34
 
30
35
  # Custom start script
data/example/site.pp ADDED
@@ -0,0 +1 @@
1
+ package { 'htop': }
@@ -27,6 +27,7 @@ module VagrantPlugins
27
27
  # TODO: Find out where this fits into the process
28
28
  # b2.use Builtin::EnvSet, :port_collision_repair => true
29
29
  # b2.use Builtin::HandleForwardedPortCollisions
30
+ b2.use Builtin::Provision
30
31
  b2.use ShareFolders
31
32
  b2.use ForwardPorts
32
33
  # This will actually create and start, but that's fine
@@ -142,6 +143,7 @@ module VagrantPlugins
142
143
  # If the container is running, then our work here is done, exit
143
144
  next if env[:result]
144
145
 
146
+ b2.use Builtin::Provision
145
147
  b2.use Message, :starting
146
148
  b2.use action_boot
147
149
  end
@@ -150,8 +152,7 @@ module VagrantPlugins
150
152
 
151
153
  def self.action_boot
152
154
  Builder.new.tap do |b|
153
- b.use Builtin::Provision
154
- # b.use Builtin::SetHostname
155
+ # TODO: b.use Builtin::SetHostname
155
156
  b.use Start
156
157
  b.use Builtin::WaitForCommunicator
157
158
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DockerProvider
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Rehm
@@ -85,6 +85,7 @@ files:
85
85
  - development/Vagrantfile
86
86
  - docker-provider.gemspec
87
87
  - example/Vagrantfile
88
+ - example/site.pp
88
89
  - lib/docker-provider.rb
89
90
  - lib/docker-provider/action.rb
90
91
  - lib/docker-provider/action/check_running.rb