orchestration 0.6.16 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.strong_versions.yml +1 -0
- data/README.md +29 -12
- data/lib/orchestration/docker_compose/app_service.rb +2 -2
- data/lib/orchestration/docker_compose/compose_configuration.rb +1 -1
- data/lib/orchestration/environment.rb +3 -3
- data/lib/orchestration/file_helpers.rb +4 -4
- data/lib/orchestration/install_generator.rb +5 -42
- data/lib/orchestration/make/orchestration.mk +25 -45
- data/lib/orchestration/make.rb +0 -2
- data/lib/orchestration/services/database/configuration.rb +5 -5
- data/lib/orchestration/services/mixins/configuration_base.rb +1 -1
- data/lib/orchestration/services/mixins/http_healthcheck.rb +1 -1
- data/lib/orchestration/services/mongo/configuration.rb +1 -1
- data/lib/orchestration/templates/Dockerfile.erb +9 -11
- data/lib/orchestration/templates/rabbitmq.yml.erb +1 -1
- data/lib/orchestration/terminal.rb +1 -6
- data/lib/orchestration/version.rb +1 -1
- data/lib/orchestration.rb +19 -58
- data/lib/tasks/orchestration.rake +1 -4
- data/orchestration.gemspec +21 -23
- metadata +46 -78
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -275
- data/lib/orchestration/healthcheck.bash +0 -16
- data/lib/orchestration/make/orchestration.mk.orig +0 -535
data/Gemfile.lock
DELETED
@@ -1,275 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
orchestration (0.6.16)
|
5
|
-
database_url (~> 0.1.2)
|
6
|
-
dotenv-rails (~> 2.8)
|
7
|
-
erubis (~> 2.7)
|
8
|
-
i18n (>= 0.5)
|
9
|
-
paint (~> 2.0)
|
10
|
-
rails (>= 4.1)
|
11
|
-
thor (~> 1.0)
|
12
|
-
|
13
|
-
GEM
|
14
|
-
remote: https://rubygems.org/
|
15
|
-
specs:
|
16
|
-
actioncable (6.1.4.7)
|
17
|
-
actionpack (= 6.1.4.7)
|
18
|
-
activesupport (= 6.1.4.7)
|
19
|
-
nio4r (~> 2.0)
|
20
|
-
websocket-driver (>= 0.6.1)
|
21
|
-
actionmailbox (6.1.4.7)
|
22
|
-
actionpack (= 6.1.4.7)
|
23
|
-
activejob (= 6.1.4.7)
|
24
|
-
activerecord (= 6.1.4.7)
|
25
|
-
activestorage (= 6.1.4.7)
|
26
|
-
activesupport (= 6.1.4.7)
|
27
|
-
mail (>= 2.7.1)
|
28
|
-
actionmailer (6.1.4.7)
|
29
|
-
actionpack (= 6.1.4.7)
|
30
|
-
actionview (= 6.1.4.7)
|
31
|
-
activejob (= 6.1.4.7)
|
32
|
-
activesupport (= 6.1.4.7)
|
33
|
-
mail (~> 2.5, >= 2.5.4)
|
34
|
-
rails-dom-testing (~> 2.0)
|
35
|
-
actionpack (6.1.4.7)
|
36
|
-
actionview (= 6.1.4.7)
|
37
|
-
activesupport (= 6.1.4.7)
|
38
|
-
rack (~> 2.0, >= 2.0.9)
|
39
|
-
rack-test (>= 0.6.3)
|
40
|
-
rails-dom-testing (~> 2.0)
|
41
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
42
|
-
actiontext (6.1.4.7)
|
43
|
-
actionpack (= 6.1.4.7)
|
44
|
-
activerecord (= 6.1.4.7)
|
45
|
-
activestorage (= 6.1.4.7)
|
46
|
-
activesupport (= 6.1.4.7)
|
47
|
-
nokogiri (>= 1.8.5)
|
48
|
-
actionview (6.1.4.7)
|
49
|
-
activesupport (= 6.1.4.7)
|
50
|
-
builder (~> 3.1)
|
51
|
-
erubi (~> 1.4)
|
52
|
-
rails-dom-testing (~> 2.0)
|
53
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
54
|
-
activejob (6.1.4.7)
|
55
|
-
activesupport (= 6.1.4.7)
|
56
|
-
globalid (>= 0.3.6)
|
57
|
-
activemodel (6.1.4.7)
|
58
|
-
activesupport (= 6.1.4.7)
|
59
|
-
activerecord (6.1.4.7)
|
60
|
-
activemodel (= 6.1.4.7)
|
61
|
-
activesupport (= 6.1.4.7)
|
62
|
-
activerecord-postgis-adapter (7.1.1)
|
63
|
-
activerecord (~> 6.1)
|
64
|
-
rgeo-activerecord (~> 7.0.0)
|
65
|
-
activestorage (6.1.4.7)
|
66
|
-
actionpack (= 6.1.4.7)
|
67
|
-
activejob (= 6.1.4.7)
|
68
|
-
activerecord (= 6.1.4.7)
|
69
|
-
activesupport (= 6.1.4.7)
|
70
|
-
marcel (~> 1.0.0)
|
71
|
-
mini_mime (>= 1.1.0)
|
72
|
-
activesupport (6.1.4.7)
|
73
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
74
|
-
i18n (>= 1.6, < 2)
|
75
|
-
minitest (>= 5.1)
|
76
|
-
tzinfo (~> 2.0)
|
77
|
-
zeitwerk (~> 2.3)
|
78
|
-
addressable (2.8.1)
|
79
|
-
public_suffix (>= 2.0.2, < 6.0)
|
80
|
-
amq-protocol (2.3.2)
|
81
|
-
ast (2.4.2)
|
82
|
-
bson (4.15.0)
|
83
|
-
builder (3.2.4)
|
84
|
-
bunny (2.20.1)
|
85
|
-
amq-protocol (~> 2.3, >= 2.3.1)
|
86
|
-
sorted_set (~> 1, >= 1.0.2)
|
87
|
-
concurrent-ruby (1.1.10)
|
88
|
-
crack (0.4.5)
|
89
|
-
rexml
|
90
|
-
crass (1.0.6)
|
91
|
-
database_url (0.1.2)
|
92
|
-
date (3.3.3)
|
93
|
-
devpack (0.3.3)
|
94
|
-
diff-lcs (1.5.0)
|
95
|
-
dotenv (2.8.1)
|
96
|
-
dotenv-rails (2.8.1)
|
97
|
-
dotenv (= 2.8.1)
|
98
|
-
railties (>= 3.2)
|
99
|
-
erubi (1.12.0)
|
100
|
-
erubis (2.7.0)
|
101
|
-
globalid (1.0.0)
|
102
|
-
activesupport (>= 5.0)
|
103
|
-
hashdiff (1.0.1)
|
104
|
-
i18n (1.12.0)
|
105
|
-
concurrent-ruby (~> 1.0)
|
106
|
-
json (2.6.3)
|
107
|
-
loofah (2.19.1)
|
108
|
-
crass (~> 1.0.2)
|
109
|
-
nokogiri (>= 1.5.9)
|
110
|
-
mail (2.8.0)
|
111
|
-
mini_mime (>= 0.1.1)
|
112
|
-
net-imap
|
113
|
-
net-pop
|
114
|
-
net-smtp
|
115
|
-
marcel (1.0.2)
|
116
|
-
method_source (1.0.0)
|
117
|
-
mini_mime (1.1.2)
|
118
|
-
minitest (5.17.0)
|
119
|
-
mongo (2.18.2)
|
120
|
-
bson (>= 4.14.1, < 5.0.0)
|
121
|
-
mongoid (7.5.2)
|
122
|
-
activemodel (>= 5.1, < 7.1, != 7.0.0)
|
123
|
-
mongo (>= 2.10.5, < 3.0.0)
|
124
|
-
ruby2_keywords (~> 0.0.5)
|
125
|
-
mysql2 (0.5.4)
|
126
|
-
net-imap (0.3.4)
|
127
|
-
date
|
128
|
-
net-protocol
|
129
|
-
net-pop (0.1.2)
|
130
|
-
net-protocol
|
131
|
-
net-protocol (0.2.1)
|
132
|
-
timeout
|
133
|
-
net-smtp (0.3.3)
|
134
|
-
net-protocol
|
135
|
-
nio4r (2.5.8)
|
136
|
-
nokogiri (1.13.10-x86_64-linux)
|
137
|
-
racc (~> 1.4)
|
138
|
-
paint (2.3.0)
|
139
|
-
parallel (1.22.1)
|
140
|
-
parser (3.2.0.0)
|
141
|
-
ast (~> 2.4.1)
|
142
|
-
pg (1.4.5)
|
143
|
-
public_suffix (5.0.1)
|
144
|
-
racc (1.6.2)
|
145
|
-
rack (2.2.5)
|
146
|
-
rack-test (2.0.2)
|
147
|
-
rack (>= 1.3)
|
148
|
-
rails (6.1.4.7)
|
149
|
-
actioncable (= 6.1.4.7)
|
150
|
-
actionmailbox (= 6.1.4.7)
|
151
|
-
actionmailer (= 6.1.4.7)
|
152
|
-
actionpack (= 6.1.4.7)
|
153
|
-
actiontext (= 6.1.4.7)
|
154
|
-
actionview (= 6.1.4.7)
|
155
|
-
activejob (= 6.1.4.7)
|
156
|
-
activemodel (= 6.1.4.7)
|
157
|
-
activerecord (= 6.1.4.7)
|
158
|
-
activestorage (= 6.1.4.7)
|
159
|
-
activesupport (= 6.1.4.7)
|
160
|
-
bundler (>= 1.15.0)
|
161
|
-
railties (= 6.1.4.7)
|
162
|
-
sprockets-rails (>= 2.0.0)
|
163
|
-
rails-dom-testing (2.0.3)
|
164
|
-
activesupport (>= 4.2.0)
|
165
|
-
nokogiri (>= 1.6)
|
166
|
-
rails-html-sanitizer (1.4.4)
|
167
|
-
loofah (~> 2.19, >= 2.19.1)
|
168
|
-
railties (6.1.4.7)
|
169
|
-
actionpack (= 6.1.4.7)
|
170
|
-
activesupport (= 6.1.4.7)
|
171
|
-
method_source
|
172
|
-
rake (>= 0.13)
|
173
|
-
thor (~> 1.0)
|
174
|
-
rainbow (3.1.1)
|
175
|
-
rake (10.5.0)
|
176
|
-
rbtree (0.4.6)
|
177
|
-
regexp_parser (2.6.1)
|
178
|
-
rexml (3.2.5)
|
179
|
-
rgeo (2.4.0)
|
180
|
-
rgeo-activerecord (7.0.1)
|
181
|
-
activerecord (>= 5.0)
|
182
|
-
rgeo (>= 1.0.0)
|
183
|
-
rspec (3.12.0)
|
184
|
-
rspec-core (~> 3.12.0)
|
185
|
-
rspec-expectations (~> 3.12.0)
|
186
|
-
rspec-mocks (~> 3.12.0)
|
187
|
-
rspec-core (3.12.0)
|
188
|
-
rspec-support (~> 3.12.0)
|
189
|
-
rspec-expectations (3.12.1)
|
190
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
191
|
-
rspec-support (~> 3.12.0)
|
192
|
-
rspec-its (1.3.0)
|
193
|
-
rspec-core (>= 3.0.0)
|
194
|
-
rspec-expectations (>= 3.0.0)
|
195
|
-
rspec-mocks (3.12.1)
|
196
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
197
|
-
rspec-support (~> 3.12.0)
|
198
|
-
rspec-support (3.12.0)
|
199
|
-
rubocop (1.42.0)
|
200
|
-
json (~> 2.3)
|
201
|
-
parallel (~> 1.10)
|
202
|
-
parser (>= 3.1.2.1)
|
203
|
-
rainbow (>= 2.2.2, < 4.0)
|
204
|
-
regexp_parser (>= 1.8, < 3.0)
|
205
|
-
rexml (>= 3.2.5, < 4.0)
|
206
|
-
rubocop-ast (>= 1.24.1, < 2.0)
|
207
|
-
ruby-progressbar (~> 1.7)
|
208
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
209
|
-
rubocop-ast (1.24.1)
|
210
|
-
parser (>= 3.1.1.0)
|
211
|
-
rubocop-rails (2.17.4)
|
212
|
-
activesupport (>= 4.2.0)
|
213
|
-
rack (>= 1.1)
|
214
|
-
rubocop (>= 1.33.0, < 2.0)
|
215
|
-
rubocop-rake (0.5.1)
|
216
|
-
rubocop
|
217
|
-
rubocop-rspec (2.16.0)
|
218
|
-
rubocop (~> 1.33)
|
219
|
-
ruby-progressbar (1.11.0)
|
220
|
-
ruby2_keywords (0.0.5)
|
221
|
-
set (1.0.3)
|
222
|
-
sorted_set (1.0.3)
|
223
|
-
rbtree
|
224
|
-
set (~> 1.0)
|
225
|
-
sprockets (4.2.0)
|
226
|
-
concurrent-ruby (~> 1.0)
|
227
|
-
rack (>= 2.2.4, < 4)
|
228
|
-
sprockets-rails (3.4.2)
|
229
|
-
actionpack (>= 5.2)
|
230
|
-
activesupport (>= 5.2)
|
231
|
-
sprockets (>= 3.0.0)
|
232
|
-
sqlite3 (1.5.4-x86_64-linux)
|
233
|
-
strong_versions (0.4.5)
|
234
|
-
i18n (>= 0.5)
|
235
|
-
paint (~> 2.0)
|
236
|
-
thor (1.2.1)
|
237
|
-
timeout (0.3.1)
|
238
|
-
tzinfo (2.0.5)
|
239
|
-
concurrent-ruby (~> 1.0)
|
240
|
-
unicode-display_width (2.4.0)
|
241
|
-
webmock (3.18.1)
|
242
|
-
addressable (>= 2.8.0)
|
243
|
-
crack (>= 0.3.2)
|
244
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
245
|
-
websocket-driver (0.7.5)
|
246
|
-
websocket-extensions (>= 0.1.0)
|
247
|
-
websocket-extensions (0.1.5)
|
248
|
-
zeitwerk (2.6.6)
|
249
|
-
|
250
|
-
PLATFORMS
|
251
|
-
x86_64-linux
|
252
|
-
|
253
|
-
DEPENDENCIES
|
254
|
-
activerecord (~> 6.0)
|
255
|
-
activerecord-postgis-adapter (~> 7.1)
|
256
|
-
bunny (~> 2.12)
|
257
|
-
devpack (~> 0.3.2)
|
258
|
-
mongoid (~> 7.0)
|
259
|
-
mysql2 (~> 0.5.2)
|
260
|
-
orchestration!
|
261
|
-
pg (~> 1.1)
|
262
|
-
rails (~> 6.0)
|
263
|
-
rake (~> 10.0)
|
264
|
-
rspec (~> 3.0)
|
265
|
-
rspec-its (~> 1.2)
|
266
|
-
rubocop (~> 1.12)
|
267
|
-
rubocop-rails (~> 2.9)
|
268
|
-
rubocop-rake (~> 0.5.1)
|
269
|
-
rubocop-rspec (~> 2.2)
|
270
|
-
sqlite3 (~> 1.3)
|
271
|
-
strong_versions (~> 0.4.5)
|
272
|
-
webmock (~> 3.4)
|
273
|
-
|
274
|
-
BUNDLED WITH
|
275
|
-
2.3.11
|
@@ -1,16 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
url="${WEB_HEALTHCHECK_PROTOCOL:-http}://${WEB_HOST:-localhost}:${WEB_PORT:-8080}${WEB_HEALTHCHECK_PATH:-/healthcheck}"
|
4
|
-
curl_options="--max-time ${WEB_HEALTHCHECK_READ_TIMEOUT:-10} --connect-timeout ${WEB_HEALTHCHECK_OPEN_TIMEOUT:-10} --silent --output /dev/null --write-out %{http_code}"
|
5
|
-
status_code="$(curl ${curl_options} "${url}")"
|
6
|
-
|
7
|
-
echo "Status Code: ${status_code} (${url})"
|
8
|
-
|
9
|
-
if [[ "${WEB_HEALTHCHECK_SUCCESS_CODES:-200,201,202,204}" =~ (^|,)"${status_code}"(,|$) ]]
|
10
|
-
then
|
11
|
-
echo 'Healthcheck SUCCESS'
|
12
|
-
exit 0
|
13
|
-
else
|
14
|
-
echo 'Healthcheck FAILURE'
|
15
|
-
exit 1
|
16
|
-
fi
|