orchestration 0.6.0 → 0.6.1
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/README.md +1 -1
- data/lib/orchestration/docker_compose/app_service.rb +1 -0
- data/lib/orchestration/install_generator.rb +0 -1
- data/lib/orchestration/make/orchestration.mk +2 -2
- data/lib/orchestration/templates/Dockerfile.erb +3 -1
- data/lib/orchestration/templates/application.mk.erb +1 -1
- data/lib/orchestration/templates/puma.rb.erb +1 -1
- data/lib/orchestration/version.rb +1 -1
- data/lib/tasks/orchestration.rake +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb25cce428ce1b475d757e95164210197a9d737d64b72fc94f2565e2ab8b54a9
|
4
|
+
data.tar.gz: 365c9b2705a167cff5ab10a74a3b6a84ef232c9ecbb16c7371519bb76458d973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dd32821fc004fee139bd0de47cae89a5703dd3300f90601ea3c7e7e900cf1c15f1a5ac29d89bc56a21237df3a4e8d04810ec03f9df34c1e3057a3a004f378f5
|
7
|
+
data.tar.gz: 56cd182bc0edfdae3a494e6a876f99e42e2d1183e0d24bbd00e853d64b4a9942144913fd024c8fb4ad4b687c8602732916edc0b7d656a21d9e6ff36064bacca7
|
data/README.md
CHANGED
@@ -99,6 +99,7 @@ module Orchestration
|
|
99
99
|
'RAILS_SERVE_STATIC_FILES' => '1',
|
100
100
|
'WEB_PRELOAD_APP' => '1',
|
101
101
|
'WEB_HEALTHCHECK_PATH' => '/',
|
102
|
+
'WEB_PORT' => 8080,
|
102
103
|
'DATABASE_URL' => database_url
|
103
104
|
}.merge(inherited_environment.map { |key| [key, nil] }.to_h).merge(rabbitmq_urls)
|
104
105
|
end
|
@@ -297,8 +297,8 @@ ifneq (,$(wildcard config/database.yml))
|
|
297
297
|
@$(call system,rake db:create DATABASE_URL="${url}")
|
298
298
|
@${rake} db:create RAILS_ENV=${env} ${log} || : ${log}
|
299
299
|
ifneq (,$(wildcard db/structure.sql))
|
300
|
-
@$(call system,rake db:
|
301
|
-
@${rake} db:
|
300
|
+
@$(call system,rake db:schema:load DATABASE_URL="${url}")
|
301
|
+
@${rake} db:schema:load DATABASE_URL='${url}' ${log} || ${exit_fail}
|
302
302
|
else ifneq (,$(wildcard db/schema.rb))
|
303
303
|
@$(call system,rake db:schema:load DATABASE_URL="${url}")
|
304
304
|
@${rake} db:schema:load DATABASE_URL='${url}' ${log} || ${exit_fail}
|
@@ -19,7 +19,9 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
|
19
19
|
&& npm install -g yarn<% end %>
|
20
20
|
WORKDIR /app
|
21
21
|
COPY .build/Gemfile .build/Gemfile.lock ./
|
22
|
-
RUN bundle
|
22
|
+
RUN bundle config set deployment 'true' \
|
23
|
+
&& bundle config set without 'development test' \
|
24
|
+
&& bundle install
|
23
25
|
ADD .build/context.tar .
|
24
26
|
<% if defined?(Webpacker) %>RUN . /root/.bashrc ; NODE_ENV=production RAILS_ENV=production yarn install && NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=abc123 bundle exec rake assets:precompile<% elsif Rake::Task.tasks.map(&:name).include?('assets:precompile') %>RUN NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=abc123 bundle exec rake assets:precompile<% end %>
|
25
27
|
RUN echo "${GIT_COMMIT}" > /app/GIT_COMMIT
|
@@ -24,7 +24,7 @@ test:
|
|
24
24
|
#
|
25
25
|
.PHONY: post-setup
|
26
26
|
post-setup:
|
27
|
-
|
27
|
+
@# Setup tasks that are not already provided by Orchestration go here.
|
28
28
|
|
29
29
|
#
|
30
30
|
# Launch all dependencies needed for a development environment and set up the
|
@@ -22,7 +22,13 @@ namespace :orchestration do
|
|
22
22
|
namespace :db do
|
23
23
|
desc I18n.t('orchestration.rake.db.url')
|
24
24
|
task :url do
|
25
|
-
|
25
|
+
config = Rails.application.config_for(:database)
|
26
|
+
|
27
|
+
if config[:adapter] == 'sqlite3'
|
28
|
+
puts "sqlite3:#{config[:database]}"
|
29
|
+
else
|
30
|
+
puts DatabaseUrl.to_active_record_url(config)
|
31
|
+
end
|
26
32
|
end
|
27
33
|
|
28
34
|
desc I18n.t('orchestration.rake.db.console')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orchestration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: database_url
|