orchestration 0.7.11 → 0.7.13

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: 76a744cb6cc82929bcaea021634c1af4b7b34392659e1a3d799ddd61854e6dee
4
- data.tar.gz: d42940c62fa5488a64cf3e6c245938de8d1cf8e47536fd9a0075903dcd54d272
3
+ metadata.gz: 88ac6c1abc38cd440da7fcb344b449d030c587c583628bdd449d02068f49522c
4
+ data.tar.gz: 6cd7f01dec6372ce5cc5eb2ed04ef6359ac5fa5869cf5736b39c0b611946b538
5
5
  SHA512:
6
- metadata.gz: 0ad4095426917667b72150004b57525ffedaedf84be6c68b727ca782814c5a053a45f6e33c8cc36bcc95825863bbe36684862b3c31f501ad3938f40217d3f39e
7
- data.tar.gz: fa5d209da39d650a7bbb52b786d900f3e5ebcce7ea69a9c662cbc3ddadbd318be82f3764d744420215a67e569436870c157ed244670d4471e00cdf16f9b8a23c
6
+ metadata.gz: e8a53799fecc687ab4121cd30409ebca199f355b549dfec2a19552c2975f3422f14b7180e6d964033b66c8410c4c047fd29503b16a45ca9b0c0cbbc93e71dbae
7
+ data.tar.gz: 9f50b1fc445b8e6110d8f1d8af5d22b7bce28723130c13289f03e7d55057c28790b1637eb9691fdb065bd51cb546c16ce184d1fedd9c146e2fb3e75798680a93
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orchestration (0.7.11)
4
+ orchestration (0.7.13)
5
5
  database_url (~> 0.1.2)
6
6
  dotenv-rails (~> 2.8)
7
7
  erubis (~> 2.7)
@@ -30,7 +30,14 @@ module Orchestration
30
30
  end
31
31
 
32
32
  def mongo_url
33
- ENV.fetch('MONGO_URL', nil)
33
+ case environment
34
+ when 'development'
35
+ ENV.fetch('DEVELOPMENT_MONGO_URL') { ENV.fetch('MONGO_URL', nil) }
36
+ when 'test'
37
+ ENV.fetch('TEST_MONGO_URL') { ENV.fetch('MONGO_URL', nil) }
38
+ else
39
+ ENV.fetch('MONGO_URL', nil)
40
+ end
34
41
  end
35
42
 
36
43
  def mongoid_configuration_path
@@ -386,14 +386,13 @@ tag:
386
386
  .PHONY: deploy
387
387
  deploy: _log-notify _clean-logs
388
388
  ifdef env_file
389
- deploy: env_file_option = --env-file ${env_file}
389
+ deploy: env_file_option = . ${env_file}
390
390
  endif
391
391
  deploy: RAILS_ENV := ${env}
392
392
  deploy: RACK_ENV := ${env}
393
393
  deploy: DOCKER_TAG = ${git_version}
394
394
  deploy: base_vars = DOCKER_ORGANIZATION=${docker_organization} DOCKER_REPOSITORY=${docker_repository} DOCKER_TAG=${git_version}
395
- deploy: compose_deploy := ${base_vars} COMPOSE_PROJECT_NAME=${project_base} HOST_UID=$(shell id -u) docker-compose ${env_file_option} --project-name ${project_base} -f orchestration/docker-compose.deployment.yml
396
- deploy: config_cmd = ${compose_deploy} config
395
+ deploy: config_cmd := ( set -a ; ${env_file_option} ; ${base_vars} COMPOSE_PROJECT_NAME=${project_base} HOST_UID=$(shell id -u) docker stack config --compose-file orchestration/docker-compose.deployment.yml )
397
396
  deploy: remote_cmd = cat | docker stack deploy --prune --with-registry-auth -c - ${project_base}
398
397
  deploy: ssh_cmd = ssh "${manager}"
399
398
  deploy: deploy_cmd := ${config_cmd} | ${ssh_cmd} "/bin/bash -lc '${remote_cmd}'"
@@ -15,14 +15,10 @@ RUN apt-get update \
15
15
  && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
16
16
  && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
17
17
  && apt-get update \
18
- && apt-get install nodejs \
18
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs \
19
19
  && rm -rf /var/lib/apt/lists/* \
20
20
  && gem install bundler \
21
21
  && mkdir /app<%if defined?(Webpacker) %> \
22
- && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash \
23
- && . /root/.bashrc \
24
- && npm config set user 0 \
25
- && npm config set unsafe-perm true \
26
22
  && npm install -g yarn<% end %>
27
23
  WORKDIR /app
28
24
  COPY .build/Gemfile .build/Gemfile.lock ./
@@ -30,7 +26,7 @@ RUN bundle config set deployment 'true' \
30
26
  && bundle config set without 'development test' \
31
27
  && bundle install
32
28
  ADD .build/context.tar .
33
- <% if defined?(Webpacker) %>RUN . /root/.bashrc ; NODE_ENV=production RAILS_ENV=production yarn install && NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=placeholder-secret bundle exec rake assets:precompile<% elsif Rake::Task.tasks.map(&:name).include?('assets:precompile') %>RUN NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=placeholder-secret bundle exec rake assets:precompile<% end %>
29
+ <% if defined?(Webpacker) %>RUN NODE_ENV=production RAILS_ENV=production yarn install && NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=placeholder-secret bundle exec rake assets:precompile<% elsif Rake::Task.tasks.map(&:name).include?('assets:precompile') %>RUN NODE_ENV=production RAILS_ENV=production SECRET_KEY_BASE=placeholder-secret bundle exec rake assets:precompile<% end %>
34
30
  RUN echo "${GIT_COMMIT}" > /app/GIT_COMMIT
35
31
  HEALTHCHECK --interval=<%= healthcheck['interval'] %> \
36
32
  --timeout=<%= healthcheck['timeout'] %> \
@@ -1,12 +1,12 @@
1
1
  development:
2
2
  clients:
3
3
  default:
4
- uri: <%= "#{'<' + '%' + '='} ENV.fetch('MONGO_URL', 'mongodb://127.0.0.1:#{compose.call('development').local_port('mongo')}/development_db') #{'%' + '>'}" %>
4
+ uri: <%= "#{'<' + '%' + '='} ENV.fetch('DEVELOPMENT_MONGO_URL', 'mongodb://127.0.0.1:#{compose.call('development').local_port('mongo')}/development') #{'%' + '>'}" %>
5
5
 
6
6
  test:
7
7
  clients:
8
8
  default:
9
- uri: <%= "#{'<' + '%' + '='} ENV.fetch('MONGO_URL', 'mongodb://127.0.0.1:#{compose.call('test').local_port('mongo')}/test_db') #{'%' + '>'}" %>
9
+ uri: <%= "#{'<' + '%' + '='} ENV.fetch('TEST_MONGO_URL', 'mongodb://127.0.0.1:#{compose.call('test').local_port('mongo')}/test') #{'%' + '>'}" %>
10
10
 
11
11
  production:
12
12
  clients:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orchestration
4
- VERSION = '0.7.11'
4
+ VERSION = '0.7.13'
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.7.11
4
+ version: 0.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2023-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: database_url