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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -2
- data/example/Vagrantfile +6 -1
- data/example/site.pp +1 -0
- data/lib/docker-provider/action.rb +3 -2
- data/lib/docker-provider/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75f8540cb7ab18e1d6592fc46a2dd3ef6675f766
|
4
|
+
data.tar.gz: d098ade4f9e92f805ac2f479b354e4dc436c2be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4582b7287bad91333f450a779ad56ee9db01df6511ca8386146485c8e1a34747a32fd1a2439679b16663b862047e45475b766ad55c0d41e03fd05d15374347ad
|
7
|
+
data.tar.gz: 83c0bc91abbf40202ba6944d76910bbf845fe6b39ad8754ec53e112d372c1bee2fc71cb7f93c2b7a989a18a8d29a297e22d34fe14870a7f375d8c73ffd3c2f31
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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_**.
|
79
|
-
|
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
|
-
#
|
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::
|
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
|
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.
|
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
|