orchestration 0.3.17 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/LICENSE +7 -0
  4. data/MANIFEST +76 -0
  5. data/Makefile +3 -3
  6. data/README.md +162 -137
  7. data/Rakefile +2 -2
  8. data/config/locales/en.yml +3 -1
  9. data/lib/orchestration/docker_compose/app_service.rb +84 -13
  10. data/lib/orchestration/docker_compose/compose_configuration.rb +69 -0
  11. data/lib/orchestration/docker_compose/database_service.rb +15 -13
  12. data/lib/orchestration/docker_compose/install_generator.rb +3 -2
  13. data/lib/orchestration/docker_compose/mongo_service.rb +5 -5
  14. data/lib/orchestration/docker_compose/rabbitmq_service.rb +2 -3
  15. data/lib/orchestration/docker_compose.rb +1 -0
  16. data/lib/orchestration/environment.rb +19 -6
  17. data/lib/orchestration/errors.rb +1 -1
  18. data/lib/orchestration/file_helpers.rb +27 -4
  19. data/lib/orchestration/install_generator.rb +85 -20
  20. data/lib/orchestration/services/app/configuration.rb +9 -5
  21. data/lib/orchestration/services/app/healthcheck.rb +1 -22
  22. data/lib/orchestration/services/database/adapters/mysql2.rb +13 -2
  23. data/lib/orchestration/services/database/adapters/postgresql.rb +0 -1
  24. data/lib/orchestration/services/database/configuration.rb +68 -75
  25. data/lib/orchestration/services/database/healthcheck.rb +10 -1
  26. data/lib/orchestration/services/listener/configuration.rb +1 -1
  27. data/lib/orchestration/services/listener/healthcheck.rb +2 -2
  28. data/lib/orchestration/services/{configuration_base.rb → mixins/configuration_base.rb} +15 -13
  29. data/lib/orchestration/services/{healthcheck_base.rb → mixins/healthcheck_base.rb} +3 -2
  30. data/lib/orchestration/services/mixins/http_healthcheck.rb +38 -0
  31. data/lib/orchestration/services/mongo/configuration.rb +37 -63
  32. data/lib/orchestration/services/mongo/healthcheck.rb +3 -32
  33. data/lib/orchestration/services/rabbitmq/configuration.rb +11 -22
  34. data/lib/orchestration/services/rabbitmq/healthcheck.rb +2 -2
  35. data/lib/orchestration/services.rb +3 -2
  36. data/lib/orchestration/templates/Dockerfile.erb +8 -4
  37. data/lib/orchestration/templates/database.yml.erb +32 -0
  38. data/lib/orchestration/templates/deploy.mk.erb +2 -2
  39. data/lib/orchestration/templates/entrypoint.sh.erb +13 -4
  40. data/lib/orchestration/templates/env.erb +10 -2
  41. data/lib/orchestration/templates/healthcheck.rb.erb +56 -0
  42. data/lib/orchestration/templates/makefile_macros.mk.erb +108 -0
  43. data/lib/orchestration/templates/mongoid.yml.erb +18 -0
  44. data/lib/orchestration/templates/orchestration.mk.erb +242 -120
  45. data/lib/orchestration/templates/puma.rb.erb +19 -0
  46. data/lib/orchestration/templates/rabbitmq.yml.erb +12 -0
  47. data/lib/orchestration/templates/unicorn.rb.erb +5 -5
  48. data/lib/orchestration/terminal.rb +13 -15
  49. data/lib/orchestration/version.rb +1 -1
  50. data/lib/orchestration.rb +20 -2
  51. data/lib/tasks/orchestration.rake +3 -1
  52. data/orchestration.gemspec +3 -5
  53. metadata +23 -13
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orchestration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.17
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-22 00:00:00.000000000 Z
11
+ date: 2019-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: colorize
14
+ name: database_url
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.1
19
+ version: 0.1.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.1
26
+ version: 0.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: erubis
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -53,33 +53,33 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.5'
55
55
  - !ruby/object:Gem::Dependency
56
- name: thor
56
+ name: paint
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.20.0
61
+ version: '2.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.20.0
68
+ version: '2.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: unicorn
70
+ name: thor
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.4'
75
+ version: 0.20.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '5.4'
82
+ version: 0.20.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activerecord
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -322,6 +322,8 @@ files:
322
322
  - ".strong_versions.yml"
323
323
  - ".travis.yml"
324
324
  - Gemfile
325
+ - LICENSE
326
+ - MANIFEST
325
327
  - Makefile
326
328
  - README.md
327
329
  - Rakefile
@@ -335,6 +337,7 @@ files:
335
337
  - lib/orchestration.rb
336
338
  - lib/orchestration/docker_compose.rb
337
339
  - lib/orchestration/docker_compose/app_service.rb
340
+ - lib/orchestration/docker_compose/compose_configuration.rb
338
341
  - lib/orchestration/docker_compose/configuration.rb
339
342
  - lib/orchestration/docker_compose/database_service.rb
340
343
  - lib/orchestration/docker_compose/install_generator.rb
@@ -350,7 +353,6 @@ files:
350
353
  - lib/orchestration/services/app.rb
351
354
  - lib/orchestration/services/app/configuration.rb
352
355
  - lib/orchestration/services/app/healthcheck.rb
353
- - lib/orchestration/services/configuration_base.rb
354
356
  - lib/orchestration/services/database.rb
355
357
  - lib/orchestration/services/database/adapters.rb
356
358
  - lib/orchestration/services/database/adapters/mysql2.rb
@@ -358,10 +360,12 @@ files:
358
360
  - lib/orchestration/services/database/adapters/sqlite3.rb
359
361
  - lib/orchestration/services/database/configuration.rb
360
362
  - lib/orchestration/services/database/healthcheck.rb
361
- - lib/orchestration/services/healthcheck_base.rb
362
363
  - lib/orchestration/services/listener.rb
363
364
  - lib/orchestration/services/listener/configuration.rb
364
365
  - lib/orchestration/services/listener/healthcheck.rb
366
+ - lib/orchestration/services/mixins/configuration_base.rb
367
+ - lib/orchestration/services/mixins/healthcheck_base.rb
368
+ - lib/orchestration/services/mixins/http_healthcheck.rb
365
369
  - lib/orchestration/services/mongo.rb
366
370
  - lib/orchestration/services/mongo/configuration.rb
367
371
  - lib/orchestration/services/mongo/healthcheck.rb
@@ -371,11 +375,17 @@ files:
371
375
  - lib/orchestration/settings.rb
372
376
  - lib/orchestration/templates/Dockerfile.erb
373
377
  - lib/orchestration/templates/application.mk.erb
378
+ - lib/orchestration/templates/database.yml.erb
374
379
  - lib/orchestration/templates/deploy.mk.erb
375
380
  - lib/orchestration/templates/docker-compose.override.yml.erb
376
381
  - lib/orchestration/templates/entrypoint.sh.erb
377
382
  - lib/orchestration/templates/env.erb
383
+ - lib/orchestration/templates/healthcheck.rb.erb
384
+ - lib/orchestration/templates/makefile_macros.mk.erb
385
+ - lib/orchestration/templates/mongoid.yml.erb
378
386
  - lib/orchestration/templates/orchestration.mk.erb
387
+ - lib/orchestration/templates/puma.rb.erb
388
+ - lib/orchestration/templates/rabbitmq.yml.erb
379
389
  - lib/orchestration/templates/unicorn.rb.erb
380
390
  - lib/orchestration/templates/yaml.bash.erb
381
391
  - lib/orchestration/terminal.rb