et_full_system 1.0.8 → 1.0.12

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: b5cdc1b69f8ef3826899e5366554ac8c50f86ae2b57aca1ccb9ad11e835c2418
4
- data.tar.gz: 18c1a81b9ac6bc05165a1143072b900ab105d64200551f32b639447b46f02e31
3
+ metadata.gz: 308aacb18fd863ab6f91e0a68b17e1884236f0c8e93559fee2d9f3ec9a4c2905
4
+ data.tar.gz: d73d29c16dd7ddfc7b3e88de448776664fa28b492e8f30bc05c5ae23bd720869
5
5
  SHA512:
6
- metadata.gz: 1d481507ace9fba9cafc4b403842b29ffb37bf659f083594464ee3505421f2094211fffb24e6fc20011db6a981528cc6d42ce32484b9010c9dd09fd28920e87c
7
- data.tar.gz: 2bb53eb5bb073a127c8c08ba835ce0b1d071304874972311d1e758789a545c50deb910fd45f05473b400e97c3625982cb4f3a23acce0d04c8a3e47f4a9a15c87
6
+ metadata.gz: f52c4cb2bfa2172aa3812da8b9104dea835348b97aa63ff735ff5873ebfd1943b05850a33f105ee076add1878b19fea880656d28bf0befad27e930ddde5c87e3
7
+ data.tar.gz: 9ce0685742ff8c85958ccce2b6a3cdf8792a31af54b24a4267d73db98bff1af90c4b1306e099070e985c8f9d0d63f46d1b81442b18cbba6861159ade55f4ece4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_full_system (1.0.8)
4
+ et_full_system (1.0.12)
5
5
  aws-sdk-s3 (~> 1.9)
6
6
  azure-storage (~> 0.15.0.preview)
7
7
  dotenv (~> 2.7, >= 2.7.2)
@@ -13,27 +13,27 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activemodel (6.0.3.4)
17
- activesupport (= 6.0.3.4)
18
- activesupport (6.0.3.4)
16
+ activemodel (6.1.1)
17
+ activesupport (= 6.1.1)
18
+ activesupport (6.1.1)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (>= 0.7, < 2)
21
- minitest (~> 5.1)
22
- tzinfo (~> 1.1)
23
- zeitwerk (~> 2.2, >= 2.2.2)
20
+ i18n (>= 1.6, < 2)
21
+ minitest (>= 5.1)
22
+ tzinfo (~> 2.0)
23
+ zeitwerk (~> 2.3)
24
24
  addressable (2.7.0)
25
25
  public_suffix (>= 2.0.2, < 5.0)
26
26
  aws-eventstream (1.1.0)
27
- aws-partitions (1.402.0)
28
- aws-sdk-core (3.109.3)
27
+ aws-partitions (1.416.0)
28
+ aws-sdk-core (3.111.0)
29
29
  aws-eventstream (~> 1, >= 1.0.2)
30
30
  aws-partitions (~> 1, >= 1.239.0)
31
31
  aws-sigv4 (~> 1.1)
32
32
  jmespath (~> 1.0)
33
- aws-sdk-kms (1.39.0)
33
+ aws-sdk-kms (1.41.0)
34
34
  aws-sdk-core (~> 3, >= 3.109.0)
35
35
  aws-sigv4 (~> 1.1)
36
- aws-sdk-s3 (1.86.0)
36
+ aws-sdk-s3 (1.87.0)
37
37
  aws-sdk-core (~> 3, >= 3.109.0)
38
38
  aws-sdk-kms (~> 1)
39
39
  aws-sigv4 (~> 1.1)
@@ -57,7 +57,7 @@ GEM
57
57
  ruby-mcrypt (~> 0.2)
58
58
  sinatra (~> 2.0, >= 2.0.3)
59
59
  sinatra-contrib (~> 2.0)
60
- et_fake_ccd (1.1.0)
60
+ et_fake_ccd (1.1.1)
61
61
  activemodel (>= 5.2.3)
62
62
  iodine (~> 0.7)
63
63
  json-schema (~> 2.5)
@@ -72,7 +72,7 @@ GEM
72
72
  httparty (0.18.1)
73
73
  mime-types (~> 3.0)
74
74
  multi_xml (>= 0.5.2)
75
- i18n (1.8.5)
75
+ i18n (1.8.7)
76
76
  concurrent-ruby (~> 1.0)
77
77
  iodine (0.7.43)
78
78
  jmespath (1.4.0)
@@ -81,21 +81,23 @@ GEM
81
81
  mime-types (3.3.1)
82
82
  mime-types-data (~> 3.2015)
83
83
  mime-types-data (3.2020.1104)
84
- mini_portile2 (2.4.0)
85
- minitest (5.14.2)
84
+ mini_portile2 (2.5.0)
85
+ minitest (5.14.3)
86
86
  multi_json (1.15.0)
87
87
  multi_xml (0.6.0)
88
88
  multipart-post (2.1.1)
89
89
  mustermann (1.1.1)
90
90
  ruby2_keywords (~> 0.0.1)
91
- nokogiri (1.10.10)
92
- mini_portile2 (~> 2.4.0)
91
+ nokogiri (1.11.1)
92
+ mini_portile2 (~> 2.5.0)
93
+ racc (~> 1.4)
93
94
  public_suffix (4.0.6)
95
+ racc (1.5.2)
94
96
  rack (2.2.3)
95
97
  rack-protection (2.1.0)
96
98
  rack
97
99
  rake (13.0.1)
98
- roda (3.38.0)
100
+ roda (3.39.0)
99
101
  rack
100
102
  rotp (5.1.0)
101
103
  addressable (~> 2.5)
@@ -113,10 +115,9 @@ GEM
113
115
  sinatra (= 2.1.0)
114
116
  tilt (~> 2.0)
115
117
  thor (1.0.1)
116
- thread_safe (0.3.6)
117
118
  tilt (2.0.10)
118
- tzinfo (1.2.8)
119
- thread_safe (~> 0.1)
119
+ tzinfo (2.0.4)
120
+ concurrent-ruby (~> 1.0)
120
121
  zeitwerk (2.4.2)
121
122
 
122
123
  PLATFORMS
@@ -39,7 +39,9 @@ RUN bash --login -c "rvm --default use 2.5.1"
39
39
  RUN gem update --system
40
40
 
41
41
  # ...put your own build instructions here...
42
- RUN apt-get update && apt-get -y --no-install-recommends install tzdata postgresql gettext-base wget sudo libmcrypt-dev mcrypt sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
42
+ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
43
+ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
44
+ RUN apt-get update && apt-get -y --no-install-recommends install tzdata postgresql gettext-base wget sudo libmcrypt-dev mcrypt sqlite3 libsqlite3-dev yarn && rm -rf /var/lib/apt/lists/*
43
45
 
44
46
  # Install jvm (small version from adoptopenjdk), grab specific version of pdftk jar file from gitlab
45
47
  RUN mkdir -p /root/pdftk
@@ -127,6 +127,7 @@ module EtFullSystem
127
127
  method_option :cloud_provider, type: :string, default: ENV.fetch('CLOUD_PROVIDER', 'amazon')
128
128
  def setup
129
129
  setup_depencencies
130
+ setup_ruby_versions
130
131
  setup_services
131
132
  end
132
133
 
@@ -149,6 +150,20 @@ module EtFullSystem
149
150
  external_command cmd, 'setup_dependencies'
150
151
  end
151
152
 
153
+ desc "setup_ruby_versions", "Install all ruby versions required"
154
+ def setup_ruby_versions
155
+ versions = Dir.glob(File.join(PROJECT_PATH, 'systems', '*', '.ruby-version')).map do |version_file|
156
+ File.read(version_file).split("\n").first.gsub(/\Aruby-/, '')
157
+ end.uniq - [RUBY_VERSION]
158
+
159
+ versions.each do |version|
160
+ puts "------------------------------------------------ SETTING UP ruby #{version} ---------------------------------------------------"
161
+ cmd = "bash --login -c \"rvm install #{version}\""
162
+ puts cmd
163
+ external_command cmd, "ruby #{version} install"
164
+ end
165
+ end
166
+
152
167
  desc "service_env SERVICE", "Returns the environment variables configured for the specified service"
153
168
  def service_env(service)
154
169
  lookup = {
@@ -327,7 +342,7 @@ module EtFullSystem
327
342
 
328
343
  def setup_et1_service
329
344
  puts "------------------------------------------------ SETTING UP ET1 SERVICE ---------------------------------------------------"
330
- cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et1.env\" bundle install --with=#{options[:rails_env]}\""
345
+ cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et1.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
331
346
  puts cmd
332
347
  external_command cmd, 'et1 setup'
333
348
 
@@ -342,7 +357,7 @@ module EtFullSystem
342
357
 
343
358
  def setup_et3_service
344
359
  puts "------------------------------------------------ SETTING UP ET3 SERVICE ---------------------------------------------------"
345
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et3.env\" bundle install --with=#{options[:rails_env]}\""
360
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et3.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
346
361
  puts cmd
347
362
  external_command cmd, 'et3 setup'
348
363
 
@@ -353,7 +368,7 @@ module EtFullSystem
353
368
 
354
369
  def setup_admin_service
355
370
  puts "------------------------------------------------ SETTING UP ADMIN SERVICE ---------------------------------------------------"
356
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" bundle install --with=#{options[:rails_env]}\""
371
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_admin.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
357
372
  puts cmd
358
373
  external_command cmd, 'admin setup'
359
374
 
@@ -365,7 +380,7 @@ module EtFullSystem
365
380
 
366
381
  def setup_api_service
367
382
  puts "------------------------------------------------ SETTING UP API SERVICE ---------------------------------------------------"
368
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_api.env\" bundle install --with=#{options[:rails_env]}\""
383
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_api.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
369
384
  puts cmd
370
385
  external_command cmd, 'api setup'
371
386
 
@@ -377,14 +392,14 @@ module EtFullSystem
377
392
 
378
393
  def setup_atos_service
379
394
  puts "------------------------------------------------ SETTING UP ATOS SERVICE ---------------------------------------------------"
380
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" bundle install --with=#{options[:rails_env]}\""
395
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_atos.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
381
396
  puts cmd
382
397
  external_command cmd, 'atos setup'
383
398
  end
384
399
 
385
400
  def setup_ccd_service
386
401
  puts "------------------------------------------------ SETTING UP CCD EXPORT SERVICE ---------------------------------------------------"
387
- cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et_ccd_export && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_ccd_export.env\" bundle install --with=#{options[:rails_env]}\""
402
+ cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et_ccd_export && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} godotenv -f \"#{GEM_PATH}/foreman/.env\" godotenv -f \"#{GEM_PATH}/foreman/et_ccd_export.env\" gem install bundler:1.17.3 && bundle install --with=#{options[:rails_env]}\""
388
403
  puts cmd
389
404
  external_command cmd, 'ccd setup'
390
405
  end
@@ -1,3 +1,3 @@
1
1
  module EtFullSystem
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_full_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2021-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor