docker-compose 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/compose/session.rb +4 -2
- data/lib/docker/compose/version.rb +1 -1
- 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: 81d2f61d0d87387d5ca2f36d9dc07e8b1b3de900
|
4
|
+
data.tar.gz: 5d526154e899384f28098b02d12c328776addc84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e98feaf72b6089425e0c2a97bd2a6f2440287f0efff90852b64d39340a0fe3898e93c31f46a3cd3974635a3a76822ed90f9361e3e7aaa95e2ff5ec7fe96399
|
7
|
+
data.tar.gz: 112dfa9ff1ed29a69f44b96de5098f810a7d8a477ba41750fb30645c7dc983d32bb58849d5a29095c2b062caaac3ccb07d68bb65d0e8374ecc8484bbfb5c75e0
|
@@ -120,14 +120,16 @@ module Docker::Compose
|
|
120
120
|
# @param [Boolean] no_deps if true, just run specified services without
|
121
121
|
# running the services that they depend on
|
122
122
|
# @param [Array] env a list of environment variables (see: -e flag)
|
123
|
+
# @param [Array] volumes a list of volumes to bind mount (see: -v flag)
|
123
124
|
# @param [Boolean] rm remove the container when done
|
124
125
|
# @param [Boolean] no_tty disable pseudo-tty allocation (see: -T flag)
|
125
126
|
# @param [String] user run as specified username or uid (see: -u flag)
|
126
127
|
# @raise [Error] if command fails
|
127
|
-
def run(service, *cmd, detached: false, no_deps: false, env: [], rm: false, no_tty: false, user: nil)
|
128
|
+
def run(service, *cmd, detached: false, no_deps: false, volumes: [], env: [], rm: false, no_tty: false, user: nil)
|
128
129
|
o = opts(d: [detached, false], no_deps: [no_deps, false], rm: [rm, false], T: [no_tty, false], u: [user, nil])
|
129
130
|
env_params = env.map { |v| { e: v } }
|
130
|
-
|
131
|
+
volume_params = volumes.map { |v| { v: v } }
|
132
|
+
run!('run', o, *env_params, *volume_params, service, cmd)
|
131
133
|
end
|
132
134
|
|
133
135
|
def restart(*services, timeout:10)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Spataro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backticks
|