et_full_system 5.0.0 → 6.0.0.pre.rc1

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: c7265770818c72ed93aed11a39369e9423de3c5c525549fa82b9f291c43df140
4
- data.tar.gz: d4d8e9ef682b983b3a938c07771b379a30f1cbcf0d8008b9c98f2f9b28d71807
3
+ metadata.gz: d3fe8ba8e37f4004ea783c046d8c4c24160ad808ad4150781b8e93b90549539e
4
+ data.tar.gz: b75d2f4d20cdbc6fa773403a6d7eb63577bba9554e2071cd0c70b8aca60f5c8f
5
5
  SHA512:
6
- metadata.gz: d903a2c227310e73b5efb03a1463cc382e6de5a42cc3626830b042b95f6abf8113e98ac6f732fcd967a62a6e85586b9bb0063b34c091dc1ef4ef3e3337f6b3fd
7
- data.tar.gz: e36236aab3512b6b488b9113184ead15fda63b9815ae5952e2ebc3f0f2d0df253486b0af8a71cafdcb2e61842e951b432d8ef3f17be74b4a5c6ea8b05068a6c8
6
+ metadata.gz: b22617dde9ba100351a8ef40eb31d2e3bfc4c609546f47f327dc4b2a03c95811d34abd4c2af4822d0181683e6fe03111158908649123b8bd37c6cb8d414c6e00
7
+ data.tar.gz: 66b644f18fd423f773e247da154816994d8e96f8082085eeeab13333c29ae1c86061ff67785ceda94d84fca4918d06d2ded6f91ecfa2628f5fc6fdf42f91718d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_full_system (5.0.0)
4
+ et_full_system (6.0.0.pre.rc1)
5
5
  aws-sdk-s3 (~> 1.9)
6
6
  azure-storage (~> 0.15.0.preview)
7
7
  dotenv (~> 2.7, >= 2.7.2)
@@ -24,7 +24,7 @@ GEM
24
24
  addressable (2.8.0)
25
25
  public_suffix (>= 2.0.2, < 5.0)
26
26
  aws-eventstream (1.2.0)
27
- aws-partitions (1.528.0)
27
+ aws-partitions (1.530.0)
28
28
  aws-sdk-core (3.122.1)
29
29
  aws-eventstream (~> 1, >= 1.0.2)
30
30
  aws-partitions (~> 1, >= 1.525.0)
@@ -50,11 +50,12 @@ GEM
50
50
  nokogiri (~> 1.6, >= 1.6.8)
51
51
  concurrent-ruby (1.1.9)
52
52
  dotenv (2.7.6)
53
- et_fake_ccd (1.1.9)
53
+ et_fake_ccd (1.1.10)
54
54
  activemodel (>= 5.2.3)
55
55
  iodine (~> 0.7)
56
56
  json-schema (~> 2.5)
57
57
  roda (~> 3.21)
58
+ roda-enhanced_logger (~> 0.4.0)
58
59
  rotp (~> 6.2)
59
60
  thor (~> 1.0)
60
61
  tilt (~> 2.0, >= 2.0.9)
@@ -82,9 +83,9 @@ GEM
82
83
  jwt (2.3.0)
83
84
  mail (2.7.1)
84
85
  mini_mime (>= 0.1.1)
85
- mime-types (3.3.1)
86
+ mime-types (3.4.0)
86
87
  mime-types-data (~> 3.2015)
87
- mime-types-data (3.2021.0901)
88
+ mime-types-data (3.2021.1115)
88
89
  mini_mime (1.1.2)
89
90
  mini_portile2 (2.6.1)
90
91
  minitest (5.14.4)
@@ -93,15 +94,23 @@ GEM
93
94
  nokogiri (1.12.5)
94
95
  mini_portile2 (~> 2.6.1)
95
96
  racc (~> 1.4)
97
+ pastel (0.8.0)
98
+ tty-color (~> 0.5)
96
99
  public_suffix (4.0.6)
97
100
  racc (1.6.0)
98
101
  rack (2.2.3)
99
102
  rake (13.0.1)
100
- roda (3.49.0)
103
+ roda (3.50.0)
101
104
  rack
105
+ roda-enhanced_logger (0.4.0)
106
+ roda (>= 3.19.0)
107
+ tty-logger (>= 0.3, < 1.0)
102
108
  rotp (6.2.0)
103
109
  thor (1.1.0)
104
110
  tilt (2.0.10)
111
+ tty-color (0.6.0)
112
+ tty-logger (0.6.0)
113
+ pastel (~> 0.8)
105
114
  tzinfo (2.0.4)
106
115
  concurrent-ruby (~> 1.0)
107
116
  zeitwerk (2.5.1)
data/docker/Dockerfile CHANGED
@@ -1,93 +1,36 @@
1
- FROM mailhog/mailhog:v1.0.1 AS mailhog
2
- FROM traefik:1.7 AS traefik
3
- FROM minio/minio AS minio
4
- FROM phusion/passenger-customizable:1.0.19
5
-
1
+ FROM ruby:2.7.4-alpine
6
2
  # Set correct environment variables.
7
- ENV HOME /root
3
+
8
4
  ARG GEM_VERSION=>0
9
5
  ARG user_id=1000
10
- COPY --from=mailhog /usr/local/bin/MailHog /usr/local/bin/mailhog
11
- COPY --from=traefik /traefik /usr/local/bin/
12
- COPY --from=minio /opt/bin/minio /usr/local/bin/
13
- # Use baseimage-docker's init process.
14
- CMD ["/sbin/my_init"]
15
- RUN mv /etc/apt/sources.list.d /etc/apt/sources.list.d.bak
16
- RUN apt update && apt install -y ca-certificates
17
- RUN mv /etc/apt/sources.list.d.bak /etc/apt/sources.list.d
18
- RUN apt-get update
19
- # If you're using the 'customizable' variant, you need to explicitly opt-in
20
- # for features.
21
- #
22
- # N.B. these images are based on https://github.com/phusion/baseimage-docker,
23
- # so anything it provides is also automatically on board in the images below
24
- # (e.g. older versions of Ruby, Node, Python).
25
- #
26
- # Uncomment the features you want:
27
- #
28
- # Ruby support
29
-
30
-
31
- #RUN /pd_build/ruby-2.0.*.sh
32
- #RUN /pd_build/ruby-2.1.*.sh
33
- #RUN /pd_build/ruby-2.2.*.sh
34
- #RUN /pd_build/ruby-2.3.*.sh
35
- #RUN /pd_build/ruby-2.4.*.sh
36
- RUN /pd_build/ruby-2.7.*.sh
37
- #RUN /pd_build/jruby-9.1.*.sh
38
- # Python support.
39
- #RUN /pd_build/python.sh
40
- # Node.js and Meteor standalone support.
41
- # (not needed if you already have the above Ruby support)
42
- RUN /pd_build/nodejs.sh
43
-
44
6
  # Get latest rubygems
45
- RUN bash --login -c "rvm --default use 2.7.4"
46
7
  RUN gem update --system
47
-
48
- # ...put your own build instructions here...
49
- RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
50
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
51
- RUN apt-get update && apt-get -y --no-install-recommends install musl tzdata postgresql gettext-base pdftk wget sudo libmcrypt-dev mcrypt sqlite3 libsqlite3-dev yarn shared-mime-info && rm -rf /var/lib/apt/lists/*
52
-
53
- # Enable the Redis service.
54
- RUN rm -f /etc/service/redis/down
55
-
56
- # Install freeport
57
- RUN wget https://github.com/phayes/freeport/releases/download/1.0.2/freeport_1.0.2_linux_amd64.deb && dpkg -i freeport_1.0.2_linux_amd64.deb && rm freeport_1.0.2_linux_amd64.deb
58
-
59
- # Install azurite
60
- RUN bash -lc "npm install -g azurite@2.7.0"
61
-
62
- # Install go, then godotenv, then remove go
63
- 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
64
-
65
- # Create the minio_data directory for the minio server
66
- RUN mkdir -p /home/app/minio_data; chown app:app /home/app/minio_data; chmod 0777 /home/app/minio_data
67
-
68
- # Create the azure_storage_data directory for the azure storage server
69
- RUN mkdir -p /home/app/azure_storage_data; chown app:app /home/app/azure_storage_data; chmod 0777 /home/app/azure_storage_data
70
-
71
- # Clean up APT when done.
72
- RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
73
-
8
+ RUN apk add --no-cache postgresql-dev libffi-dev tzdata gettext wget sudo libmcrypt-dev sqlite sqlite-dev nodejs yarn shared-mime-info git build-base curl bash openjdk11-jre
9
+ RUN addgroup app --gid 1000
10
+ RUN adduser -SD -u 1000 --shell /bin/bash --home /home/app app app
11
+ RUN chown -R app:app /usr/local/bundle
74
12
  RUN mkdir -p /home/app/full_system; chown app:app /home/app/full_system
13
+ RUN wget https://gitlab.com/pdftk-java/pdftk/-/jobs/1507074845/artifacts/raw/build/libs/pdftk-all.jar
14
+ RUN mv pdftk-all.jar usr/lib/pdftk.jar
15
+ COPY build/pdftk /usr/local/bin/pdftk
16
+ COPY build/run /home/app/run
75
17
  # Install gems and binstubs to run without bundler
76
18
  RUN mkdir -p /home/app/system_gems/et_full_system && chmod 0777 /home/app/system_gems/et_full_system && chown -R app:app /home/app/system_gems
77
19
 
78
- RUN usermod -o -u $user_id app
79
- RUN groupmod -o -g $user_id app
20
+ #RUN usermod -o -u $user_id app
21
+ #RUN groupmod -o -g $user_id app
80
22
  WORKDIR /home/app/full_system
81
- RUN echo "app ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && chmod 0440 /etc/sudoers.d/user
23
+ #RUN echo "app ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && chmod 0440 /etc/sudoers.d/user
82
24
  USER app
25
+ RUN gem install dotenv bundler:1.17.3 invoker
26
+ CMD /home/app/run
83
27
 
84
- RUN bash --login -c "rvm --default use 2.7.4"
85
- RUN bash --login -c "gem install bundler --version 1.17.3"
28
+ #RUN bash --login -c "gem install bundler --version 1.17.3"
86
29
 
87
30
  # Install gems required outside of any bundle.
88
- RUN bash --login -c "rvm use 2.7.4 && gem install dotenv et_fake_acas_server invoker && gem install et_full_system --version=$GEM_VERSION"
31
+ #RUN bash --login -c "rvm use 2.7.4 && gem install dotenv et_fake_acas_server invoker && gem install et_full_system --version=$GEM_VERSION"
89
32
 
90
- WORKDIR /home/app/full_system
33
+ #WORKDIR /home/app/full_system
91
34
 
92
- RUN cd /home/app
93
- ENV HOME /home/app
35
+ #RUN cd /home/app
36
+ #ENV HOME /home/app
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bash
2
+ java -jar /usr/lib/pdftk.jar "$@"
data/docker/build/run ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env bash
2
+ cd /home/app/full_system/systems/et1 && bundle && bundle exec rails db:create db:migrate && \
3
+ cd /home/app/full_system/systems/et3 && bundle && bundle exec rails db:create db:migrate && \
4
+ cd /home/app/full_system/systems/api && bundle && bundle exec rails db:create db:migrate db:seed && \
5
+ cd /home/app/full_system/systems/admin && bundle && bundle exec rails db:seed && \
6
+ cd /home/app/full_system/systems/atos && bundle && \
7
+ cd /home/app/full_system/systems/et_ccd_export && bundle && \
8
+ sleep 60
9
+
@@ -1,5 +1,20 @@
1
1
  version: '3'
2
2
  services:
3
+ traefik:
4
+ # The official v2 Traefik docker image
5
+ image: traefik:v2.5
6
+ # Enables the web UI and tells Traefik to listen to docker
7
+ command: --api.insecure=true --providers.docker
8
+ ports:
9
+ # The HTTP port
10
+ - "80:80"
11
+ # The Web UI (enabled by --api.insecure=true)
12
+ - "8080:8080"
13
+ volumes:
14
+ # So that Traefik can listen to the Docker events
15
+ - /var/run/docker.sock:/var/run/docker.sock
16
+ networks:
17
+ - et_full_system
3
18
  et:
4
19
  image: 'et_full_system:1.0.0.pre'
5
20
  build:
@@ -67,7 +82,7 @@ services:
67
82
  CCD_MICROSERVICE_SECRET: ${CCD_MICROSERVICE_SECRET:-AAAAAAAAAAAAAAAC}
68
83
  CCD_SIDAM_USERNAME: ${CCD_SIDAM_USERNAME:-m@m.com}
69
84
  CCD_SIDAM_PASSWORD: ${CCD_SIDAM_PASSWORD:-p}
70
- command: /bin/bash --login -c "cd /home/app/full_system && et_full_system local server --azurite-storage-path=/home/app/azure_storage_data --minio-storage-path=/home/app/minio_data ${SERVER_ARGS}"
85
+ command: /bin/bash --login -c "cd /home/app/full_system && et_full_system local server --in-docker-compose ${SERVER_ARGS}"
71
86
  links:
72
87
  - "db"
73
88
  - "redis"
@@ -84,6 +99,31 @@ services:
84
99
  - atos.${SERVER_DOMAIN:-et.127.0.0.1.nip.io}
85
100
  - mail.${SERVER_DOMAIN:-et.127.0.0.1.nip.io}
86
101
  - ccd.${SERVER_DOMAIN:-et.127.0.0.1.nip.io}
102
+ labels:
103
+ - traefik.http.routers.et1-router.rule=Host(`et1.et.127.0.0.1.nip.io`)
104
+ - traefik.http.routers.et1-router.service=et1-service
105
+ - traefik.http.services.et1-service.loadbalancer.server.port=4000
106
+ - traefik.http.routers.et3-router.rule=Host(`et3.et.127.0.0.1.nip.io`)
107
+ - traefik.http.routers.et3-router.service=et3-service
108
+ - traefik.http.services.et3-service.loadbalancer.server.port=4001
109
+ - traefik.http.routers.api-router.rule=Host(`api.et.127.0.0.1.nip.io`)
110
+ - traefik.http.routers.api-router.service=api-service
111
+ - traefik.http.services.api-service.loadbalancer.server.port=4002
112
+ - traefik.http.routers.admin-router.rule=Host(`admin.et.127.0.0.1.nip.io`)
113
+ - traefik.http.routers.admin-router.service=api-service
114
+ - traefik.http.services.admin-service.loadbalancer.server.port=4003
115
+ - traefik.http.routers.atos-router.rule=Host(`atos.et.127.0.0.1.nip.io`)
116
+ - traefik.http.routers.atos-router.service=api-service
117
+ - traefik.http.services.atos-service.loadbalancer.server.port=4004
118
+ - traefik.http.routers.acas-router.rule=Host(`acas.et.127.0.0.1.nip.io`)
119
+ - traefik.http.routers.acas-router.service=api-service
120
+ - traefik.http.services.acas-service.loadbalancer.server.port=4005
121
+ - traefik.http.routers.ccd-router.rule=Host(`ccd.et.127.0.0.1.nip.io`)
122
+ - traefik.http.routers.ccd-router.service=api-service
123
+ - traefik.http.services.ccd-service.loadbalancer.server.port=4006
124
+ - traefik.http.routers.notify-router.rule=Host(`notify.et.127.0.0.1.nip.io`)
125
+ - traefik.http.routers.notify-router.service=api-service
126
+ - traefik.http.services.notify-service.loadbalancer.server.port=4007
87
127
 
88
128
  #command: bash -lc "cd /home/app/full_system/systems/api && REDIS_DATABASE=2 bundle exec sidekiq"
89
129
  db:
@@ -102,49 +142,30 @@ services:
102
142
  - et_full_system
103
143
  volumes:
104
144
  - redis_data:/data
105
- selenium-hub:
106
- image: selenium/hub:3.141.59-yttrium
107
- container_name: selenium-hub
108
- ports:
109
- - "4444:4444"
145
+ minio:
146
+ image: minio/minio
147
+ labels:
148
+ - traefik.http.routers.s3-router.rule=Host(`s3.et.127.0.0.1.nip.io`)
149
+ - traefik.http.routers.s3-router.service=et1-service
150
+ - traefik.http.services.s3-service.loadbalancer.server.port=9000
110
151
  networks:
111
152
  - et_full_system
112
- extra_hosts:
113
- - "localhost.from.docker:${LOCALHOST_FROM_DOCKER_IP}"
114
- profiles:
115
- - test
116
- chrome:
117
- image: selenium/node-chrome:3.141.59-yttrium
118
- volumes:
119
- - /dev/shm:/dev/shm
120
- depends_on:
121
- - selenium-hub
122
- environment:
123
- - HUB_HOST=selenium-hub
124
- - HUB_PORT=4444
125
- extra_hosts:
126
- - "localhost.from.docker:${LOCALHOST_FROM_DOCKER_IP}"
153
+ mailhog:
154
+ image: mailhog/mailhog:v1.0.1
155
+ labels:
156
+ - traefik.http.routers.mail-router.rule=Host(`mail.et.127.0.0.1.nip.io`)
157
+ - traefik.http.routers.mail-router.service=et1-service
158
+ - traefik.http.services.mail-service.loadbalancer.server.port=8025
127
159
  networks:
128
160
  - et_full_system
129
- profiles:
130
- - test
131
- - chrome
132
- firefox:
133
- image: selenium/node-firefox:3.141.59-yttrium
134
- volumes:
135
- - /dev/shm:/dev/shm
136
- depends_on:
137
- - selenium-hub
138
- environment:
139
- - HUB_HOST=selenium-hub
140
- - HUB_PORT=4444
141
- extra_hosts:
142
- - "localhost.from.docker:${LOCALHOST_FROM_DOCKER_IP:-127.255.255.255}"
161
+ azurite:
162
+ image: mcr.microsoft.com/azure-storage/azurite
163
+ labels:
164
+ - traefik.http.routers.azurite-router.rule=Host(`azure_blob_storage.et.127.0.0.1.nip.io`)
165
+ - traefik.http.routers.azurite-router.service=et1-service
166
+ - traefik.http.services.azurite-service.loadbalancer.server.port=10000
143
167
  networks:
144
168
  - et_full_system
145
- profiles:
146
- - test
147
- - firefox
148
169
  volumes:
149
170
  rvm:
150
171
  global_node_modules:
@@ -0,0 +1,11 @@
1
+ et1_web: export FREEPORT=$(freeport) && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et1.env bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url et1 http://localhost:$FREEPORT && cd systems/et1 && PORT=$FREEPORT ./run.sh"
2
+ et3_web: export FREEPORT=$(freeport) && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et3.env bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url et3 http://localhost:$FREEPORT && cd systems/et3 && PORT=$FREEPORT ./run.sh"
3
+ api_web: export FREEPORT=$(freeport) && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_api.env bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url api http://localhost:$FREEPORT && cd systems/api && PORT=$FREEPORT ./run.sh"
4
+ admin_web: export FREEPORT=$(freeport) && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_admin.env bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url admin http://localhost:$FREEPORT && cd systems/admin && PORT=$FREEPORT ./run.sh"
5
+ atos_api_web: export FREEPORT=$(freeport) && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/et_atos.env 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:$FREEPORT && cd systems/atos && PORT=$FREEPORT ./run.sh"
6
+ fake_acas_web: export FREEPORT=$(freeport) && 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:$FREEPORT && rvm use && et_fake_acas_server -port $FREEPORT -threads=1 -workers=2"
7
+ fake_ccd_web: export FREEPORT=$(freeport) && bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url fake_ccd http://localhost:$FREEPORT && rvm use && et_fake_ccd start --port=$FREEPORT --create_case_schema=./systems/et_ccd_export/spec/json_schemas/case_create.json"
8
+ fake_notify_web: export FREEPORT=$(freeport) && godotenv -f ${FOREMAN_PATH}/.env godotenv -f ${FOREMAN_PATH}/fake_notify.env bash --login -c "cd ${FS_ROOT_PATH} && et_full_system local wait_for_support && et_full_system local update_service_url fake_notify http://localhost:$FREEPORT && rvm use && gov_fake_notify start --port=$FREEPORT --config=${FOREMAN_PATH}/gov_fake_notify.yaml"
9
+ 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"
10
+ 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"
11
+ 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"
@@ -85,6 +85,7 @@ module EtFullSystem
85
85
  method_option :rails_env, type: :string, default: ENV.fetch('RAILS_ENV', 'production')
86
86
  method_option :cloud_provider, type: :string, default: ENV.fetch('CLOUD_PROVIDER', 'amazon')
87
87
  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)'
88
+ method_option :in_docker_compose, type: :boolean, default: false, desc: 'Set to true to assume certain services are in docker compose'
88
89
  def server
89
90
  puts "Scheduling traefik config and file storage config"
90
91
  pid = fork do
@@ -99,7 +100,11 @@ module EtFullSystem
99
100
  if options.minimal?
100
101
  without = ['et1', 'et3', 'admin', 'api', 'ccd_export', 'atos_api']
101
102
  end
102
- 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 godotenv -f #{GEM_PATH}/foreman/.env invoker start \"#{GEM_PATH}/foreman/Procfile\" --port=4000"
103
+ if options.in_docker_compose?
104
+ cmd = "CLOUD_PROVIDER=#{options[:cloud_provider]} RAILS_ENV=#{options[:rails_env]} FS_ROOT_PATH=#{PROJECT_PATH} FOREMAN_PATH=#{GEM_PATH}/foreman godotenv -f #{GEM_PATH}/foreman/.env invoker start \"#{GEM_PATH}/foreman/ComposeProcfile\" --port=4000"
105
+ else
106
+ 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 godotenv -f #{GEM_PATH}/foreman/.env invoker start \"#{GEM_PATH}/foreman/Procfile\" --port=4000"
107
+ end
103
108
  STDERR.puts cmd
104
109
  unless without.empty?
105
110
  stop_cmds = without.reduce([]) do |acc, service|
@@ -396,7 +401,7 @@ module EtFullSystem
396
401
  puts cmd
397
402
  external_command cmd, 'atos setup'
398
403
  end
399
-
404
+
400
405
  def setup_ccd_service
401
406
  puts "------------------------------------------------ SETTING UP CCD EXPORT SERVICE ---------------------------------------------------"
402
407
  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]}\""
@@ -1,3 +1,3 @@
1
1
  module EtFullSystem
2
- VERSION = "5.0.0"
2
+ VERSION = "6.0.0-rc1"
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: 5.0.0
4
+ version: 6.0.0.pre.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-12 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -150,12 +150,15 @@ files:
150
150
  - bin/setup
151
151
  - docker/.empty
152
152
  - docker/Dockerfile
153
+ - docker/build/pdftk
154
+ - docker/build/run
153
155
  - docker/docker-compose.yml
154
156
  - docker/pdftk
155
157
  - et_full_system.gemspec
156
158
  - exe/et_full_system
157
159
  - foreman/.env
158
160
  - foreman/.foreman
161
+ - foreman/ComposeProcfile
159
162
  - foreman/Procfile
160
163
  - foreman/et1.env
161
164
  - foreman/et3.env
@@ -197,9 +200,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
200
  version: '0'
198
201
  required_rubygems_version: !ruby/object:Gem::Requirement
199
202
  requirements:
200
- - - ">="
203
+ - - ">"
201
204
  - !ruby/object:Gem::Version
202
- version: '0'
205
+ version: 1.3.1
203
206
  requirements: []
204
207
  rubygems_version: 3.1.6
205
208
  signing_key: