et_full_system 1.0.1.pre6 → 1.0.1.pre7

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: 648fdb20bd2dcbeb31de1ce2effdb3f9640ffd481f93bafab90b450111d7f288
4
- data.tar.gz: eb9f9b70f1c6abb153fb707f3662f92e610e6f7a0e95ebe36f822160828f1dbf
3
+ metadata.gz: 7eb334eebd95d45582461f5508598207a8016ab2b4b9485b479594156081d348
4
+ data.tar.gz: 010fbfe640e2c99f15f1af32df4c4ea9293bb8e9535b59f5d5fab1bd9c591f44
5
5
  SHA512:
6
- metadata.gz: c3cfe3116eb5f62a41179c88aa73948a12a19bd58a698a57793add3e646acfc74fc981f75087ec77243c45015882a772e0af9e4f892f746e372424a26858952a
7
- data.tar.gz: c1c8ec7f5e3f2587814382a13205bc06383da08cf85c085d9b3bcecab68f86e2b579ba8a90a3cc9b41f97cee8c02b17a1928a23ac65214a6b7848300b3c05a71
6
+ metadata.gz: '094a1e73f90aa368f49ad741d885f1038ff1312a6c97b8a93023cbf0fa0b49fc9a025f92800ebd2aad0c0be93c42dbee03edd5bc67adbc8c9bb5479fa1bc1c62'
7
+ data.tar.gz: 8cc836c173f12dd18d137078656bd1c63981876bcf3b11fac32f38320d77fa05dfd704bdb46f3661f5fcd189cde195f5e8205f4d37a30a4d21594590dea39d72
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_full_system (1.0.1.pre6)
4
+ et_full_system (1.0.1.pre7)
5
5
  aws-sdk-s3 (~> 1.9)
6
6
  azure-storage (~> 0.15.0.preview)
7
7
  dotenv (~> 2.7, >= 2.7.2)
@@ -17,7 +17,7 @@ module EtFullSystem
17
17
  method_option :record_video, type: :boolean, default: false, aliases: 'record-video', desc: 'When using zalenium, enable video recording'
18
18
  method_option :minimal, type: :boolean, default: false, desc: 'Set to true to only start the minimum (db, redis, mail, s3, azure blob, fake_acas, fake_ccd)'
19
19
  def up(*args)
20
- Bundler.with_original_env do
20
+ Bundler.with_unbundled_env do
21
21
  server_args = []
22
22
  server_args << "--minimal" if options.minimal?
23
23
  server_args << "--without=#{options[:without].join(' ')}" unless options[:without].empty?
@@ -56,7 +56,7 @@ module EtFullSystem
56
56
 
57
57
  desc "down", "Stops the full system server on docker"
58
58
  def down(*args)
59
- ::Bundler.with_original_env do
59
+ ::Bundler.with_unbundled_env do
60
60
  gem_root = File.absolute_path('../../../..', __dir__)
61
61
  cmd = "GEM_VERSION=#{EtFullSystem::VERSION} LOCALHOST_FROM_DOCKER_IP=#{host_ip} docker-compose -f #{gem_root}/docker/docker-compose.yml down #{args.join(' ')}"
62
62
  puts cmd
@@ -10,7 +10,7 @@ module EtFullSystem
10
10
 
11
11
  desc "bootstrap", "Used by the docker-compose file (using sudo) - do not use yourself"
12
12
  def bootstrap
13
- Bundler.with_original_env do
13
+ Bundler.with_unbundled_env do
14
14
  cmd = File.absolute_path('../../../shell_scripts/docker_bootstrap.sh', __dir__)
15
15
  puts cmd
16
16
  exec(cmd)
@@ -19,7 +19,7 @@ module EtFullSystem
19
19
 
20
20
  desc "setup", "Sets up the system for initial run - or after changing branches, adding gems etc.. in any of the services"
21
21
  def setup
22
- Bundler.with_original_env do
22
+ Bundler.with_unbundled_env do
23
23
  gem_root = File.absolute_path('../../..', __dir__)
24
24
  cmd = "/bin/bash --login -c \"cd /home/app/full_system && et_full_system docker bootstrap && et_full_system local setup\""
25
25
  compose_cmd = "GEM_VERSION=#{EtFullSystem::VERSION} LOCALHOST_FROM_DOCKER_IP=#{host_ip} docker-compose -f #{gem_root}/docker/docker-compose.yml run --rm et #{cmd}"
@@ -30,7 +30,7 @@ module EtFullSystem
30
30
 
31
31
  desc "compose", "Provides access to the docker-compose command"
32
32
  def compose(*args)
33
- Bundler.with_original_env do
33
+ Bundler.with_unbundled_env do
34
34
  gem_root = File.absolute_path('../../..', __dir__)
35
35
  cmd = "GEM_VERSION=#{EtFullSystem::VERSION} LOCALHOST_FROM_DOCKER_IP=#{host_ip} docker-compose -f #{gem_root}/docker/docker-compose.yml #{args.join(' ')}"
36
36
  puts cmd
@@ -40,7 +40,7 @@ module EtFullSystem
40
40
 
41
41
  desc "invoker", "Provides access to the invoker system running inside docker"
42
42
  def invoker(*args, show_output: true, show_command: true)
43
- Bundler.with_original_env do
43
+ Bundler.with_unbundled_env do
44
44
  gem_root = File.absolute_path('../../..', __dir__)
45
45
  cmd = "GEM_VERSION=#{EtFullSystem::VERSION} docker-compose -f #{gem_root}/docker/docker-compose.yml exec et bash -lc \"invoker #{args.join(' ')}\""
46
46
  puts cmd if show_command
@@ -51,7 +51,7 @@ module EtFullSystem
51
51
 
52
52
  desc "reset", "Bring down the server, remove all caches, rebuild the Dockerfile etc..."
53
53
  def reset
54
- Bundler.with_original_env do
54
+ Bundler.with_unbundled_env do
55
55
  gem_root = File.absolute_path('../../..', __dir__)
56
56
  cmd = "GEM_VERSION=#{EtFullSystem::VERSION} LOCALHOST_FROM_DOCKER_IP=#{host_ip} docker-compose -f #{gem_root}/docker/docker-compose.yml down -v"
57
57
  puts cmd
@@ -65,7 +65,7 @@ module EtFullSystem
65
65
 
66
66
  desc "update_service_url SERVICE URL", "Configures the reverse proxy to connect to a specific url for a service - note the URL must be reachable from the docker container and the server must be running"
67
67
  def update_service_url(service, url)
68
- Bundler.with_original_env do
68
+ Bundler.with_unbundled_env do
69
69
  gem_root = File.absolute_path('../../..', __dir__)
70
70
  cmd = "/bin/bash --login -c \"et_full_system local update_service_url #{service} #{url}\""
71
71
  compose_cmd = "GEM_VERSION=#{EtFullSystem::VERSION} LOCALHOST_FROM_DOCKER_IP=#{host_ip} docker-compose -f #{gem_root}/docker/docker-compose.yml exec et #{cmd}"
@@ -174,7 +174,7 @@ module EtFullSystem
174
174
 
175
175
  desc "service_env SERVICE", "Returns the environment variables configured for the specified service"
176
176
  def service_env(service)
177
- Bundler.with_original_env do
177
+ Bundler.with_unbundled_env do
178
178
  gem_root = File.absolute_path('../../..', __dir__)
179
179
  cmd = "/bin/bash --login -c \"et_full_system local service_env #{service}\""
180
180
  compose_cmd = "GEM_VERSION=#{EtFullSystem::VERSION} LOCALHOST_FROM_DOCKER_IP=#{host_ip} docker-compose -f #{gem_root}/docker/docker-compose.yml exec et #{cmd}"
@@ -227,7 +227,7 @@ module EtFullSystem
227
227
  private
228
228
 
229
229
  def run_compose_command(*args, silent: false)
230
- Bundler.with_original_env do
230
+ Bundler.with_unbundled_env do
231
231
  gem_root = File.absolute_path('../../..', __dir__)
232
232
  cmd = "GEM_VERSION=#{EtFullSystem::VERSION} LOCALHOST_FROM_DOCKER_IP=#{host_ip} docker-compose -f #{gem_root}/docker/docker-compose.yml #{args.join(' ')}"
233
233
  puts cmd unless silent
@@ -49,7 +49,7 @@ module EtFullSystem
49
49
  end
50
50
 
51
51
  def setup_azure_storage
52
- Bundler.with_original_env do
52
+ Bundler.with_unbundled_env do
53
53
  puts `bash --login -c "cd systems/api && rvm use && dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle exec bundle exec rails configure_azure_storage_containers configure_azure_storage_cors"`
54
54
 
55
55
  end
@@ -94,7 +94,7 @@ module EtFullSystem
94
94
  Process.detach(pid)
95
95
 
96
96
  puts "Starting Invoker"
97
- ::Bundler.with_original_env do
97
+ ::Bundler.with_unbundled_env do
98
98
  without = options[:without]
99
99
  if options.minimal?
100
100
  without = ['et1', 'et3', 'admin', 'api', 'ccd_export', 'atos_api']
@@ -108,10 +108,10 @@ module EtFullSystem
108
108
  "invoker remove #{proc}"
109
109
  end
110
110
  stop_cmd = stop_cmds.join(' && ')
111
- puts "---------------------- DISABLING SERVICES IN 5 SECONDS ---------------------------"
111
+ puts "---------------------- DISABLING SERVICES IN 10 SECONDS ---------------------------"
112
112
  puts "command is #{stop_cmd}"
113
113
  Thread.new do
114
- sleep 5
114
+ sleep 10
115
115
  puts `#{stop_cmd}`
116
116
  end
117
117
  end
@@ -132,7 +132,7 @@ module EtFullSystem
132
132
 
133
133
  desc "setup_services", "Sets up all services in one command"
134
134
  def setup_services
135
- ::Bundler.with_original_env do
135
+ ::Bundler.with_unbundled_env do
136
136
  setup_et1_service
137
137
  setup_et3_service
138
138
  setup_api_service
@@ -177,7 +177,7 @@ module EtFullSystem
177
177
  when 'api' then ['api_web', 'api_sidekiq']
178
178
  when 'admin' then ['admin_web']
179
179
  when 'atos_api' then ['atos_api_web']
180
- when 'ccd_export' then ['et_ccd_export_web']
180
+ when 'ccd_export' then ['et_ccd_export_sidekiq']
181
181
  else raise "Unknown service #{service}"
182
182
  end
183
183
  end
@@ -1,3 +1,3 @@
1
1
  module EtFullSystem
2
- VERSION = "1.0.1.pre6"
2
+ VERSION = "1.0.1.pre7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_full_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.pre6
4
+ version: 1.0.1.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor