docker-publish 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/build/composer.rb +2 -2
- data/lib/build/symfony/doctrine.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce2a072bff9735facd862aa2c0a5f8e0ef1d882
|
4
|
+
data.tar.gz: a66d70953acc5585d322dd5a80c615f4c6c4b18c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d37acb77c4b7a397b20bd1dc63fe714ec8d86d3a8a0244bceded3eced4481369edfc9dd1ba495e3a468ae6bcf69712665cf6669afee53340755d390ec11d5b55
|
7
|
+
data.tar.gz: 9315c38f0a0269f5aa3ac8e0bfb2285f25b4b55422e188af1192eb739f36c687a8be740334c0ee04c2f794491e226ff742aeb9d07070654403bd4e6c76a63f0a
|
data/lib/build/composer.rb
CHANGED
@@ -8,7 +8,7 @@ class Composer
|
|
8
8
|
# @param [hash] env_hash
|
9
9
|
def development(data_container_name, env_hash)
|
10
10
|
puts '-- Installing Composer development dependencies'
|
11
|
-
docker_command =
|
11
|
+
docker_command = get_docker_command(data_container_name, env_hash) + 'install --verbose --profile'
|
12
12
|
puts '---- Running: ' << docker_command
|
13
13
|
fail 'Composer development installation failed' unless system docker_command
|
14
14
|
end
|
@@ -17,7 +17,7 @@ class Composer
|
|
17
17
|
# @param [hash] env_hash
|
18
18
|
def production(data_container_name, env_hash)
|
19
19
|
puts '---- Installing Composer production dependencies'
|
20
|
-
docker_command =
|
20
|
+
docker_command = get_docker_command(data_container_name, env_hash) + 'install --no-dev --optimize-autoloader --no-interaction --verbose --profile'
|
21
21
|
puts '---- Running: ' << docker_command
|
22
22
|
fail 'Composer production installation failed' unless system docker_command
|
23
23
|
end
|
@@ -8,7 +8,7 @@ class Doctrine
|
|
8
8
|
# @param [string] db_container_name
|
9
9
|
def create_database(data_container_name, db_container_name = nil)
|
10
10
|
puts '-- Creating Symfony Doctrine database'
|
11
|
-
docker_command =
|
11
|
+
docker_command = get_docker_command(data_container_name, db_container_name) << 'doctrine:database:create'
|
12
12
|
puts '---- Running: ' << docker_command
|
13
13
|
output = `#{docker_command}`
|
14
14
|
print output
|
@@ -19,7 +19,7 @@ class Doctrine
|
|
19
19
|
# @param [string] db_container_name
|
20
20
|
def run_migrations(data_container_name, db_container_name = nil)
|
21
21
|
puts '-- Running Symfony Doctrine migrations'
|
22
|
-
docker_command =
|
22
|
+
docker_command = get_docker_command(data_container_name, db_container_name) << 'doctine:migrations:migrate --no-interaction'
|
23
23
|
puts '---- Running: ' << docker_command
|
24
24
|
fail 'Database migrations failed!' unless system docker_command
|
25
25
|
end
|