vagrant-docker-compose 0.0.3 → 0.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02e166a6319d5d34775e89c48ed70105a768523e
|
4
|
+
data.tar.gz: f2ec26807ea919483fac9d496d032bc1c79afa40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 629f859e2abfaa95d589a07382d81c22f1b233021b69ef94fce0202a12f82cc79e9e4ee6eba84af9934b9ae61db2b03237c2995c748f38cae02fff72be2f10f0
|
7
|
+
data.tar.gz: 5f823dbc0ac6fdeb0e45d571cc550c471b3cf76d910d51742ae58e126406705cfc77303bd7c7cfc8498ee0041eec183f1a4543293af101c0ff343fec3baa7966
|
data/README.md
CHANGED
@@ -57,6 +57,12 @@ docker-compose -f [yml] build
|
|
57
57
|
docker-compose -f [yml] up
|
58
58
|
```
|
59
59
|
|
60
|
+
### Other configs
|
61
|
+
|
62
|
+
* `compose_version` – defaults to `1.3.1`.
|
63
|
+
* `project_name` – compose will default to naming the project `vagrant`.
|
64
|
+
* `executable` – the location the executable will be stored, defaults to `/usr/local/bin/docker-compose`.
|
65
|
+
|
60
66
|
## Example
|
61
67
|
|
62
|
-
See `example` in the repository for a full working example.
|
68
|
+
See `example` in the repository for a full working example.
|
@@ -5,7 +5,7 @@ module VagrantPlugins
|
|
5
5
|
module DockerComposeInstall
|
6
6
|
def self.docker_compose_install(machine, config)
|
7
7
|
machine.communicate.tap do |comm|
|
8
|
-
comm.sudo("curl -L https://github.com/docker/compose/releases/download
|
8
|
+
comm.sudo("curl -L https://github.com/docker/compose/releases/download/#{config.compose_version}/docker-compose-`uname -s`-`uname -m` > #{config.executable}
|
9
9
|
chmod +x #{config.executable}")
|
10
10
|
end
|
11
11
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module VagrantPlugins
|
2
2
|
module DockerComposeProvisioner
|
3
3
|
class Config < Vagrant.plugin("2", :config)
|
4
|
-
attr_accessor :yml, :rebuild, :project_name, :executable
|
4
|
+
attr_accessor :yml, :rebuild, :project_name, :executable, :compose_version
|
5
5
|
|
6
6
|
def yml=(yml)
|
7
7
|
raise DockerComposeError, :yml_must_be_absolute if !Pathname.new(yml).absolute?
|
@@ -11,11 +11,13 @@ module VagrantPlugins
|
|
11
11
|
def initialize
|
12
12
|
@executable = UNSET_VALUE
|
13
13
|
@project_name = UNSET_VALUE
|
14
|
+
@compose_version = UNSET_VALUE
|
14
15
|
end
|
15
16
|
|
16
17
|
def finalize!
|
17
18
|
@executable = "/usr/local/bin/docker-compose" if @executable == UNSET_VALUE
|
18
19
|
@project_name = nil if @project_name == UNSET_VALUE
|
20
|
+
@compose_version = "1.3.1" if @compose_version == UNSET_VALUE
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-docker-compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leigh McCulloch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Vagrant provisioner for docker compose.
|
14
14
|
email:
|