docker-build 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/symfony/doctrine.rb +3 -3
- 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: 13094bf25d31153950a8ce1836c5cea44c936916
|
4
|
+
data.tar.gz: 2cb292051e8f2072ff6147f3fb4084b86e1b7cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4005092fe8464c333bc523426eb481cdda1b8c9eac45239c56c13148494a11454e6caf6034b4ced3bfc14d75f98dbcf628ea770e7f3b9673f8b2d24d9f22a5b7
|
7
|
+
data.tar.gz: 52baeb6f0000f745d52a9306a194019ce59e31c27cb3ea56cb20121ae1189428cb60efaf6aa56e088f7a1c2a3b21bf33e35cc3d227f717997dd06145970beac5
|
data/lib/symfony/doctrine.rb
CHANGED
@@ -11,14 +11,14 @@ class Doctrine
|
|
11
11
|
|
12
12
|
def self.run_migrations(data_container, db_container = nil)
|
13
13
|
puts '-- Running Symfony Doctrine migrations'
|
14
|
-
docker_command = self.get_docker_command(data_container, db_container) << 'doctine:migrations:migrate'
|
14
|
+
docker_command = self.get_docker_command(data_container, db_container) << 'doctine:migrations:migrate --no-interaction'
|
15
15
|
puts '---- Running: ' << docker_command
|
16
16
|
fail 'Database migrations failed!' unless system docker_command
|
17
17
|
end
|
18
18
|
|
19
19
|
private
|
20
20
|
def self.get_docker_command(data_container, db_container = nil)
|
21
|
-
docker_command = "docker run
|
21
|
+
docker_command = "docker run --rm --volumes-from #{data_container} "
|
22
22
|
if db_container != nil
|
23
23
|
docker_command << "--link #{db_container}:#{db_container} "
|
24
24
|
end
|
@@ -27,4 +27,4 @@ class Doctrine
|
|
27
27
|
return docker_command
|
28
28
|
end
|
29
29
|
|
30
|
-
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VJ Patel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Preset tasks for Rake when building projects with Docker
|
14
14
|
email: meetthevj@gmail.com
|