et_full_system 0.1.42 → 0.1.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docker/Dockerfile +4 -1
- data/foreman/Procfile +9 -9
- data/lib/et_full_system/cli/local.rb +10 -10
- data/lib/et_full_system/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbd1ec4d9981c500a509fd0516daf360b54c201b67d5c217ec3d423b721035cb
|
4
|
+
data.tar.gz: 3d70fa888f1f212b971b3ad327c8d14f3c5c2ac87e10d8a30f7c5300c3e495c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d65a850c2b1606918d41c725d26b35dbf5d4be3a9c6e9dc76ce7c312ccf21f320ab74abc4fc69d7ad8281c075c51590dd208ef1e84d96606203ce5ec7c178e06
|
7
|
+
data.tar.gz: 38c8122266ab7df93626ee55cb4b8c7dc6a6e5fa2b9f0bc4253e5d5fcedcfa2fbe08ec44f1b3be4f155552967cc20cf04ab0d184053488dff25428fae09754af
|
data/Gemfile.lock
CHANGED
data/docker/Dockerfile
CHANGED
@@ -38,7 +38,7 @@ RUN bash --login -c "rvm --default use 2.5.1"
|
|
38
38
|
RUN gem update --system
|
39
39
|
|
40
40
|
# ...put your own build instructions here...
|
41
|
-
RUN apt-get update && apt-get -y install pdftk tzdata postgresql gettext-base wget sudo libmcrypt-dev mcrypt
|
41
|
+
RUN apt-get update && apt-get -y --no-install-recommends install pdftk tzdata postgresql gettext-base wget sudo libmcrypt-dev mcrypt && rm -rf /var/lib/apt/lists/*
|
42
42
|
|
43
43
|
RUN /pd_build/nodejs.sh
|
44
44
|
|
@@ -60,6 +60,9 @@ RUN bash -lc "npm install -g azurite"
|
|
60
60
|
# Install Mailhog
|
61
61
|
RUN bash -lc "cd /usr/local/bin && wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 -O mailhog && chmod +x mailhog"
|
62
62
|
|
63
|
+
# Install go, then godotenv, then remove go
|
64
|
+
RUN apt-get update && apt-get -y install --no-install-recommends golang && export GOPATH=/home/app/go && mkdir -p /home/app/go && go get github.com/joho/godotenv/cmd/godotenv && apt-get -y remove golang && apt -y autoremove && rm -rf /var/lib/apt/lists/* && cp /home/app/go/bin/godotenv /usr/bin/ && rm -rf /home/app/go
|
65
|
+
|
63
66
|
# Create the minio_data directory for the minio server
|
64
67
|
RUN mkdir -p /home/app/minio_data; chown app:app /home/app/minio_data; chmod 0777 /home/app/minio_data
|
65
68
|
|
data/foreman/Procfile
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
traefik: bash --login -c "traefik --file.filename=${FOREMAN_PATH}/traefik.toml"
|
2
|
-
et1_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url et1 http://localhost:${PORT} && cd systems/et1 &&
|
3
|
-
et1_sidekiq: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && cd systems/et1 &&
|
4
|
-
et3_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url et3 http://localhost:${PORT} && cd systems/et3 &&
|
2
|
+
et1_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url et1 http://localhost:${PORT} && cd systems/et1 && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et1.env ./run.sh"
|
3
|
+
et1_sidekiq: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && cd systems/et1 && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et1.env ./run_sidekiq.sh"
|
4
|
+
et3_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url et3 http://localhost:${PORT} && cd systems/et3 && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et3.env ./run.sh"
|
5
5
|
mail_web: bash --login -c "source ./mailhog.env && mailhog &> /dev/null"
|
6
|
-
api_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url api http://localhost:${PORT} && cd systems/api &&
|
7
|
-
api_sidekiq: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && cd systems/api &&
|
8
|
-
admin_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url admin http://localhost:${PORT} && cd systems/admin &&
|
9
|
-
atos_api_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url atos_api http://localhost:${PORT} && cd systems/atos &&
|
10
|
-
s3_web: bash --login -c "
|
6
|
+
api_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url api http://localhost:${PORT} && cd systems/api && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_api.env ./run.sh"
|
7
|
+
api_sidekiq: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && cd systems/api && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_api.env ./run_sidekiq.sh"
|
8
|
+
admin_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url admin http://localhost:${PORT} && cd systems/admin && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_admin.env ./run.sh"
|
9
|
+
atos_api_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url atos_api http://localhost:${PORT} && cd systems/atos && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_atos.env ./run.sh"
|
10
|
+
s3_web: bash --login -c "godotenv -f ${FOREMAN_PATH}/minio.env minio server ${MINIO_STORAGE_PATH}"
|
11
11
|
azure_blob_web: bash --login -c "azurite -l ${AZURITE_STORAGE_PATH}"
|
12
12
|
fake_acas_web: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url fake_acas http://localhost:${PORT} && rvm use && et_fake_acas_server --port=$PORT --threads=1:5"
|
13
|
-
et_ccd_export_sidekiq: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && cd systems/et_ccd_export &&
|
13
|
+
et_ccd_export_sidekiq: bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && cd systems/et_ccd_export && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_ccd_export.env ./run_sidekiq.sh"
|
@@ -171,7 +171,7 @@ module EtFullSystem
|
|
171
171
|
|
172
172
|
def setup_et1_service
|
173
173
|
puts "------------------------------------------------ SETTING UP ET1 SERVICE ---------------------------------------------------"
|
174
|
-
cmd = "bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
174
|
+
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]}\""
|
175
175
|
puts cmd
|
176
176
|
external_command cmd, 'et1 setup'
|
177
177
|
|
@@ -179,56 +179,56 @@ module EtFullSystem
|
|
179
179
|
puts cmd
|
180
180
|
external_command cmd, 'et1 setup'
|
181
181
|
|
182
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et1 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
182
|
+
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 exec rake db:create db:migrate assets:precompile\""
|
183
183
|
puts cmd
|
184
184
|
external_command cmd, 'et1 setup'
|
185
185
|
end
|
186
186
|
|
187
187
|
def setup_et3_service
|
188
188
|
puts "------------------------------------------------ SETTING UP ET3 SERVICE ---------------------------------------------------"
|
189
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
189
|
+
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]}\""
|
190
190
|
puts cmd
|
191
191
|
external_command cmd, 'et3 setup'
|
192
192
|
|
193
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et3 && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
193
|
+
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 exec rake db:create db:migrate assets:precompile\""
|
194
194
|
puts cmd
|
195
195
|
external_command cmd, 'et3 setup'
|
196
196
|
end
|
197
197
|
|
198
198
|
def setup_admin_service
|
199
199
|
puts "------------------------------------------------ SETTING UP ADMIN SERVICE ---------------------------------------------------"
|
200
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
200
|
+
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]}\""
|
201
201
|
puts cmd
|
202
202
|
external_command cmd, 'admin setup'
|
203
203
|
|
204
204
|
puts "| Admin | Running rake commands"
|
205
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/admin && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
205
|
+
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 exec rake db:seed assets:precompile\""
|
206
206
|
puts cmd
|
207
207
|
external_command cmd, 'admin setup'
|
208
208
|
end
|
209
209
|
|
210
210
|
def setup_api_service
|
211
211
|
puts "------------------------------------------------ SETTING UP API SERVICE ---------------------------------------------------"
|
212
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
212
|
+
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]}\""
|
213
213
|
puts cmd
|
214
214
|
external_command cmd, 'api setup'
|
215
215
|
|
216
216
|
puts "| API | Running rake commands"
|
217
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/api && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
217
|
+
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 exec rake db:create db:migrate db:seed\""
|
218
218
|
puts cmd
|
219
219
|
external_command cmd, 'api setup'
|
220
220
|
end
|
221
221
|
|
222
222
|
def setup_atos_service
|
223
223
|
puts "------------------------------------------------ SETTING UP ATOS SERVICE ---------------------------------------------------"
|
224
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/atos && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
224
|
+
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]}\""
|
225
225
|
puts cmd
|
226
226
|
external_command cmd, 'atos setup'
|
227
227
|
end
|
228
228
|
|
229
229
|
def setup_ccd_service
|
230
230
|
puts "------------------------------------------------ SETTING UP CCD EXPORT SERVICE ---------------------------------------------------"
|
231
|
-
cmd ="bash --login -c \"cd #{PROJECT_PATH}/systems/et_ccd_export && CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]}
|
231
|
+
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]}\""
|
232
232
|
puts cmd
|
233
233
|
external_command cmd, 'ccd setup'
|
234
234
|
end
|