orchestration 0.4.7 → 0.4.8

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
  SHA256:
3
- metadata.gz: 1de40b0bbbef8c548aa941a18486aa43c7ba6fe8433c9a14acd8cde13fc9e62b
4
- data.tar.gz: b7b5cc3303a38971aabdd77217be5cb58ffa9519841724234ed8062854850de7
3
+ metadata.gz: 3658b497eae57e7f247ef8f703ddb90ca6c041a2aba5409c61e54291a8e80c22
4
+ data.tar.gz: 4a7a242492fd376b62ccb30c2dbf6e5e9163aa202e5fefbbb75b1fef4eab315c
5
5
  SHA512:
6
- metadata.gz: fb4c23106ebec66f5eff4d2400a33e7370adffbd201800b4c4a9bda3eea0c5292b97d7011d0e5cf309f23f2ed6a5b4d599010062ee08327dc50d5b99e5a25c1d
7
- data.tar.gz: 2fa9e0131222a6b368c321d9dcd314503c96e57ef639551847a17a04c4a624fa5606347ed4fdc80e3fc4535303f4fd93b65d1b241a45879423e137e9865848ad
6
+ metadata.gz: d855b7c336167af5db5444f96319de4236d7bb19fdb2ad0554b0c1730485ff57f3d1e3e9d8317138fe60797ac4cf4011bf76f168c1e8948ce3e242e0a012d7c6
7
+ data.tar.gz: 98c840d9cdd7272fa2f167373b5df176f9bb0a6d6b22f4be897dd64290f51c17087a20c8f5765e1fdd68890beae7f9de74fdde839441d014d873dfb1effd1996
data/README.md CHANGED
@@ -35,7 +35,7 @@ The below screenshot demonstrates _Orchestration_ being installed in a brand new
35
35
  Add _Orchestration_ to your Gemfile:
36
36
 
37
37
  ```ruby
38
- gem 'orchestration', '~> 0.4.7'
38
+ gem 'orchestration', '~> 0.4.8'
39
39
  ```
40
40
 
41
41
  Install:
@@ -18,7 +18,14 @@ module Orchestration
18
18
  end
19
19
 
20
20
  def database_url
21
- ENV['DATABASE_URL']
21
+ case environment
22
+ when 'development'
23
+ ENV['DEVELOPMENT_DATABASE_URL'] || ENV['DATABASE_URL']
24
+ when 'test'
25
+ ENV['TEST_DATABASE_URL'] || ENV['DATABASE_URL']
26
+ else
27
+ ENV['DATABASE_URL']
28
+ end
22
29
  end
23
30
 
24
31
  def mongo_url
@@ -1,6 +1,7 @@
1
1
  FROM ruby:<%= ruby_version %>
2
2
  ARG BUNDLE_BITBUCKET__ORG
3
3
  ARG BUNDLE_GITHUB__COM
4
+ ARG GIT_COMMIT
4
5
  RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
5
6
  && apt-get update \
6
7
  && DEBIAN_FRONTEND=noninteractive apt-get install -y \
@@ -23,6 +24,7 @@ RUN . /root/.bashrc && yarn install
23
24
  <% end %>
24
25
  ADD .build/context.tar .
25
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 %>
27
+ RUN echo "${GIT_COMMIT}" > /app/GIT_COMMIT
26
28
  HEALTHCHECK --interval=<%= healthcheck['interval'] %> \
27
29
  --timeout=<%= healthcheck['timeout'] %> \
28
30
  --start-period=<%= healthcheck['start_period'] %> \
@@ -21,8 +21,8 @@ test:
21
21
  database: <%= compose.call(nil).database_adapter.credentials['database'] %>
22
22
  # Useful for certain continuous integration environments (e.g. Jenkins in
23
23
  # Docker) where the DB hostname may be a service name rather than `127.0.0.1`:
24
- <%% if ENV.key?('DATABASE_URL') %>
25
- url: <%%= ENV['DATABASE_URL'] %>
24
+ <%% if ENV.key?('TEST_DATABASE_URL') %>
25
+ url: <%%= ENV['TEST_DATABASE_URL'] %>
26
26
  <%% end %>
27
27
  <% end %>
28
28
 
@@ -288,6 +288,7 @@ build:
288
288
  @docker build \
289
289
  --build-arg BUNDLE_GITHUB__COM \
290
290
  --build-arg BUNDLE_BITBUCKET__ORG \
291
+ --build-arg GIT_COMMIT='${git_version}' \
291
292
  -t ${docker_organization}/${docker_repository} \
292
293
  -t ${docker_organization}/${docker_repository}:${git_version} \
293
294
  ${orchestration_dir}/ ${log_progress} || ${fail}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orchestration
4
- VERSION = '0.4.7'
4
+ VERSION = '0.4.8'
5
5
  end
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.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-09 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: database_url