et_full_system 0.1.31 → 0.1.32

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92b5dc47d8b504a41e4cdc2d9bd9ab344f68ed0424529995dd0e32ea0c0e0981
4
- data.tar.gz: 8d743891336573316dfe9c9ec8616b62bb10b28d8575f5565a9c21099e387466
3
+ metadata.gz: 9ffccee2c72b0c51f3812fa2f43d5013e8e47311fe7fe02ed89b8abc558b111f
4
+ data.tar.gz: 238a0a13112c6301b157430c596996221429f5fff0ccd1d24ddc17240a921b6a
5
5
  SHA512:
6
- metadata.gz: 79a6ffa975fcf8e1b938aa9f610b3f19ff084fa2850cd52f44342e384f4e4e713600871b154640b1327cf783c57e88095913a401c74a69a2b29c1bf19baf7e7d
7
- data.tar.gz: 507c27463240a45b6eb1725f84dde8d4d5f699e070f9e0dd4f3eda54edc560a71c61e654360df9ce294ecd7019c2c2fb8fd83b9109805fd656acc6ee5bfb6c5f
6
+ metadata.gz: 810bbc63d962e2ad22b42991f7dd56a87ac505e733d36f042e5b76e6c16a7d800adcc4ffb9937eab266f000378150bdeb59c13c9b91db1cdcae92fa9b2d81791
7
+ data.tar.gz: 5a4a43f2b24d83a17b77ac310ddfb33e4a14484bbc2119fd3f816b12057e1faff83790ba750f453278f68eced89ce68e0381c0ab869bc80e288c6222caaae0bc
data/Gemfile.lock CHANGED
@@ -14,7 +14,7 @@ GIT
14
14
  PATH
15
15
  remote: .
16
16
  specs:
17
- et_full_system (0.1.31)
17
+ et_full_system (0.1.32)
18
18
  aws-sdk-s3 (~> 1.9)
19
19
  azure-storage (~> 0.15.0.preview)
20
20
  dotenv (~> 2.7, >= 2.7.2)
@@ -83,6 +83,7 @@ module EtFullSystem
83
83
  method_option :azurite_storage_path, default: '/tmp/azurite_storage', desc: "Where to store azurite data"
84
84
  method_option :minio_storage_path, default: '/tmp/minio_storage', desc: "Where to store minio data"
85
85
  method_option :rails_env, type: :string, default: ENV.fetch('RAILS_ENV', 'production')
86
+ method_option :cloud_provider, type: :string, default: ENV.fetch('CLOUD_PROVIDER', 'amazon')
86
87
  def server
87
88
  puts "Scheduling traefik config and file storage config"
88
89
  pid = fork do
@@ -94,7 +95,7 @@ module EtFullSystem
94
95
  puts "Starting Procfile"
95
96
  ::Bundler.with_original_env do
96
97
  concurrency = " -c #{procfile_concurrency_without(options[:without]).join(',')}"
97
- cmd = "RAILS_ENV=#{options[:rails_env]} AZURITE_STORAGE_PATH=\"#{options[:azurite_storage_path]}\" MINIO_STORAGE_PATH=\"#{options[:minio_storage_path]}\" FS_ROOT_PATH=#{PROJECT_PATH} FOREMAN_PATH=#{GEM_PATH}/foreman forego start -f \"#{GEM_PATH}/foreman/Procfile\" -e \"#{GEM_PATH}/foreman/.env\" -r#{concurrency}"
98
+ cmd = "CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} AZURITE_STORAGE_PATH=\"#{options[:azurite_storage_path]}\" MINIO_STORAGE_PATH=\"#{options[:minio_storage_path]}\" FS_ROOT_PATH=#{PROJECT_PATH} FOREMAN_PATH=#{GEM_PATH}/foreman forego start -f \"#{GEM_PATH}/foreman/Procfile\" -e \"#{GEM_PATH}/foreman/.env\" -r#{concurrency}"
98
99
  STDERR.puts cmd
99
100
  exec(cmd)
100
101
  end
@@ -105,6 +106,7 @@ module EtFullSystem
105
106
 
106
107
  desc "setup", "Sets up everything ready for first run"
107
108
  method_option :rails_env, type: :string, default: ENV.fetch('RAILS_ENV', 'production')
109
+ method_option :cloud_provider, type: :string, default: ENV.fetch('CLOUD_PROVIDER', 'amazon')
108
110
  def setup
109
111
  setup_depencencies
110
112
  setup_services
@@ -168,7 +170,7 @@ module EtFullSystem
168
170
 
169
171
  def setup_et1_service
170
172
  puts "------------------------------------------------ SETTING UP ET1 SERVICE ---------------------------------------------------"
171
- cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install --with=#{options[:rails_env]}\""
173
+ cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install --with=#{options[:rails_env]}\""
172
174
  puts cmd
173
175
  external_command cmd, 'et1 setup'
174
176
 
@@ -176,49 +178,49 @@ module EtFullSystem
176
178
  puts cmd
177
179
  external_command cmd, 'et1 setup'
178
180
 
179
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle exec rake db:create db:migrate assets:precompile\""
181
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle exec rake db:create db:migrate assets:precompile\""
180
182
  puts cmd
181
183
  external_command cmd, 'et1 setup'
182
184
  end
183
185
 
184
186
  def setup_et3_service
185
187
  puts "------------------------------------------------ SETTING UP ET3 SERVICE ---------------------------------------------------"
186
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
188
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
187
189
  puts cmd
188
190
  external_command cmd, 'et3 setup'
189
191
 
190
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle exec rake db:create db:migrate assets:precompile\""
192
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle exec rake db:create db:migrate assets:precompile\""
191
193
  puts cmd
192
194
  external_command cmd, 'et3 setup'
193
195
  end
194
196
 
195
197
  def setup_admin_service
196
198
  puts "------------------------------------------------ SETTING UP ADMIN SERVICE ---------------------------------------------------"
197
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --with=#{options[:rails_env]}\""
199
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --with=#{options[:rails_env]}\""
198
200
  puts cmd
199
201
  external_command cmd, 'admin setup'
200
202
 
201
203
  puts "| Admin | Running rake commands"
202
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle exec rake db:seed assets:precompile\""
204
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle exec rake db:seed assets:precompile\""
203
205
  puts cmd
204
206
  external_command cmd, 'admin setup'
205
207
  end
206
208
 
207
209
  def setup_api_service
208
210
  puts "------------------------------------------------ SETTING UP API SERVICE ---------------------------------------------------"
209
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --with=#{options[:rails_env]}\""
211
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --with=#{options[:rails_env]}\""
210
212
  puts cmd
211
213
  external_command cmd, 'api setup'
212
214
 
213
215
  puts "| API | Running rake commands"
214
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle exec rake db:create db:migrate db:seed\""
216
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle exec rake db:create db:migrate db:seed\""
215
217
  puts cmd
216
218
  external_command cmd, 'api setup'
217
219
  end
218
220
 
219
221
  def setup_atos_service
220
222
  puts "------------------------------------------------ SETTING UP ATOS SERVICE ---------------------------------------------------"
221
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --with=#{options[:rails_env]}\""
223
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} dotenv -f \"#{GEM_PATH}/foreman/.env\" dotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --with=#{options[:rails_env]}\""
222
224
  puts cmd
223
225
  external_command cmd, 'atos setup'
224
226
  end
@@ -1,3 +1,3 @@
1
1
  module EtFullSystem
2
- VERSION = "0.1.31"
2
+ VERSION = "0.1.32"
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: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor