rubypitaya 3.16.0 → 3.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubypitaya/app-template/.gitignore +0 -0
  3. data/lib/rubypitaya/app-template/.gitlab-ci.yml +0 -0
  4. data/lib/rubypitaya/app-template/.irbrc +0 -0
  5. data/lib/rubypitaya/app-template/Gemfile +4 -4
  6. data/lib/rubypitaya/app-template/Gemfile.lock +94 -82
  7. data/lib/rubypitaya/app-template/Makefile +0 -0
  8. data/lib/rubypitaya/app-template/Rakefile +0 -0
  9. data/lib/rubypitaya/app-template/app/app_initializer.rb +3 -0
  10. data/lib/rubypitaya/app-template/app/bll/player_bll.rb +0 -0
  11. data/lib/rubypitaya/app-template/app/config/initial_player.json +0 -0
  12. data/lib/rubypitaya/app-template/app/constants/status_codes.rb +0 -0
  13. data/lib/rubypitaya/app-template/app/handlers/error_handler.rb +0 -0
  14. data/lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb +0 -0
  15. data/lib/rubypitaya/app-template/app/handlers/player_handler.rb +0 -0
  16. data/lib/rubypitaya/app-template/app/http/hello_world_http.rb +0 -0
  17. data/lib/rubypitaya/app-template/app/http/views/hello_world.erb +0 -0
  18. data/lib/rubypitaya/app-template/app/migrations/1606736477_create_player_migration.rb +0 -0
  19. data/lib/rubypitaya/app-template/app/models/player.rb +0 -0
  20. data/lib/rubypitaya/app-template/app/models/user.rb +0 -0
  21. data/lib/rubypitaya/app-template/app/setup/rubypitaya.yml +0 -0
  22. data/lib/rubypitaya/app-template/config/routes.rb +0 -0
  23. data/lib/rubypitaya/app-template/docker/dev/Dockerfile +4 -7
  24. data/lib/rubypitaya/app-template/docker/prod/Dockerfile +3 -6
  25. data/lib/rubypitaya/app-template/docker/stag/docker-compose.stag.yaml +67 -67
  26. data/lib/rubypitaya/app-template/docker/stag/update_image +5 -5
  27. data/lib/rubypitaya/app-template/docker-compose.yml +0 -0
  28. data/lib/rubypitaya/app-template/features/hello_world.feature +0 -0
  29. data/lib/rubypitaya/app-template/features/player.feature +0 -0
  30. data/lib/rubypitaya/app-template/features/step_definitions/player_steps.rb +0 -0
  31. data/lib/rubypitaya/app-template/features/step_definitions/rubypitaya_steps.rb +0 -0
  32. data/lib/rubypitaya/app-template/features/support/env.rb +0 -0
  33. data/lib/rubypitaya/app-template/helm/Chart.yaml +0 -0
  34. data/lib/rubypitaya/app-template/helm/templates/config-maps/nginx-config.yaml +0 -0
  35. data/lib/rubypitaya/app-template/helm/templates/deployments/connector.yaml +0 -0
  36. data/lib/rubypitaya/app-template/helm/templates/deployments/gameserver-nginx.yaml +0 -0
  37. data/lib/rubypitaya/app-template/helm/templates/deployments/rubypitaya.yaml +0 -0
  38. data/lib/rubypitaya/app-template/helm/templates/pods/gameserver.yaml +0 -0
  39. data/lib/rubypitaya/app-template/helm/templates/role-bindings/rubypitaya.yaml +0 -0
  40. data/lib/rubypitaya/app-template/helm/templates/roles/rubypitaya.yaml +0 -0
  41. data/lib/rubypitaya/app-template/helm/templates/service-accounts/rubypitaya.yaml +0 -0
  42. data/lib/rubypitaya/app-template/helm/templates/services/connector.yaml +0 -0
  43. data/lib/rubypitaya/app-template/helm/templates/services/etcd.yaml +0 -0
  44. data/lib/rubypitaya/app-template/helm/templates/services/gameserver-nginx.yaml +0 -0
  45. data/lib/rubypitaya/app-template/helm/templates/services/gameserver.yaml +0 -0
  46. data/lib/rubypitaya/app-template/helm/templates/services/nats.yaml +0 -0
  47. data/lib/rubypitaya/app-template/helm/templates/services/redis.yaml +0 -0
  48. data/lib/rubypitaya/app-template/helm/templates/services/rubypitaya.yaml +0 -0
  49. data/lib/rubypitaya/app-template/helm/templates/statefulsets/etcd.yaml +0 -0
  50. data/lib/rubypitaya/app-template/helm/templates/statefulsets/nats.yaml +0 -0
  51. data/lib/rubypitaya/app-template/helm/templates/statefulsets/redis.yaml +0 -0
  52. data/lib/rubypitaya/app-template/helm/values.yaml +0 -0
  53. data/lib/rubypitaya/app-template/kubernetes/README.md +0 -0
  54. data/lib/rubypitaya/app-template/kubernetes/deployment-connector.yaml +0 -0
  55. data/lib/rubypitaya/app-template/kubernetes/deployment-rubypitaya.yaml +0 -0
  56. data/lib/rubypitaya/app-template/kubernetes/gameplay/deployment-nginx.yaml +0 -0
  57. data/lib/rubypitaya/app-template/kubernetes/gameplay/gameplay-template.yaml +0 -0
  58. data/lib/rubypitaya/app-template/kubernetes/gameplay/nginx.conf +0 -0
  59. data/lib/rubypitaya/app-template/kubernetes/gameplay/service-nginx.yaml +0 -0
  60. data/lib/rubypitaya/app-template/kubernetes/persistent-volume.yaml +0 -0
  61. data/lib/rubypitaya/app-template/kubernetes/role-rubypitaya.yaml +0 -0
  62. data/lib/rubypitaya/app-template/kubernetes/rolebinding-rubypitaya.yaml +0 -0
  63. data/lib/rubypitaya/app-template/kubernetes/service-connector.yaml +0 -0
  64. data/lib/rubypitaya/app-template/kubernetes/service-etcd.yaml +0 -0
  65. data/lib/rubypitaya/app-template/kubernetes/service-nats.yaml +0 -0
  66. data/lib/rubypitaya/app-template/kubernetes/service-postgres.yaml +0 -0
  67. data/lib/rubypitaya/app-template/kubernetes/service-redis.yaml +0 -0
  68. data/lib/rubypitaya/app-template/kubernetes/service-rubypitaya.yaml +0 -0
  69. data/lib/rubypitaya/app-template/kubernetes/statefulset-etcd.yaml +0 -0
  70. data/lib/rubypitaya/app-template/kubernetes/statefulset-nats.yaml +0 -0
  71. data/lib/rubypitaya/app-template/kubernetes/statefulset-postgres.yaml +0 -0
  72. data/lib/rubypitaya/app-template/kubernetes/statefulset-redis.yaml +0 -0
  73. data/lib/rubypitaya/app-template/plugins.yaml +0 -0
  74. data/lib/rubypitaya/app-template/spec/hello_world_handler_spec.rb +0 -0
  75. data/lib/rubypitaya/app-template/spec/player_handler_spec.rb +0 -0
  76. data/lib/rubypitaya/app-template/spec/redis_service_spec.rb +0 -0
  77. data/lib/rubypitaya/app-template/spec/spec_helper.rb +0 -0
  78. data/lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb +0 -0
  79. data/lib/rubypitaya/core/app/models/user.rb +0 -0
  80. data/lib/rubypitaya/core/app/services/redis_service.rb +0 -0
  81. data/lib/rubypitaya/core/application_files_importer.rb +0 -0
  82. data/lib/rubypitaya/core/config.rb +0 -0
  83. data/lib/rubypitaya/core/config_core.rb +0 -0
  84. data/lib/rubypitaya/core/config_hash_extension.rb +0 -0
  85. data/lib/rubypitaya/core/database_config.rb +2 -0
  86. data/lib/rubypitaya/core/database_connector.rb +0 -0
  87. data/lib/rubypitaya/core/etcd_connector.rb +0 -0
  88. data/lib/rubypitaya/core/handler_base.rb +0 -0
  89. data/lib/rubypitaya/core/handler_router.rb +2 -0
  90. data/lib/rubypitaya/core/helpers/setup_helper.rb +0 -0
  91. data/lib/rubypitaya/core/http_base.rb +0 -0
  92. data/lib/rubypitaya/core/http_routes.rb +1 -1
  93. data/lib/rubypitaya/core/initializer_base.rb +0 -0
  94. data/lib/rubypitaya/core/initializer_broadcast.rb +0 -0
  95. data/lib/rubypitaya/core/initializer_content.rb +3 -2
  96. data/lib/rubypitaya/core/instance_holder.rb +0 -0
  97. data/lib/rubypitaya/core/main.rb +4 -3
  98. data/lib/rubypitaya/core/nats_connector.rb +0 -0
  99. data/lib/rubypitaya/core/parameters.rb +0 -0
  100. data/lib/rubypitaya/core/path.rb +0 -0
  101. data/lib/rubypitaya/core/postman.rb +0 -0
  102. data/lib/rubypitaya/core/protos/nats_connector.proto +0 -0
  103. data/lib/rubypitaya/core/protos/nats_connector_pb.rb +0 -0
  104. data/lib/rubypitaya/core/route_error.rb +0 -0
  105. data/lib/rubypitaya/core/routes_base.rb +0 -0
  106. data/lib/rubypitaya/core/service_base.rb +0 -0
  107. data/lib/rubypitaya/core/service_holder.rb +0 -0
  108. data/lib/rubypitaya/core/session.rb +0 -0
  109. data/lib/rubypitaya/core/setup.rb +0 -0
  110. data/lib/rubypitaya/core/spec-helpers/app_spec_helper.rb +2 -1
  111. data/lib/rubypitaya/core/spec-helpers/app_spec_helper_class.rb +0 -0
  112. data/lib/rubypitaya/core/spec-helpers/config_spec_helper.rb +0 -0
  113. data/lib/rubypitaya/core/spec-helpers/postman_spec_helper.rb +0 -0
  114. data/lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb +1 -1
  115. data/lib/rubypitaya/core/spec-helpers/setup_spec_helper.rb +0 -0
  116. data/lib/rubypitaya/core/status_codes.rb +0 -0
  117. data/lib/rubypitaya/core/templates/template_migration.rb.erb +0 -0
  118. data/lib/rubypitaya/version.rb +1 -1
  119. data/lib/rubypitaya.rb +0 -0
  120. metadata +32 -32
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 233f98eb7f7752ede2d0ce8caea9cba724b287f2fb537cab13b24f30bdad2be8
4
- data.tar.gz: 685e591d3cf68cf0e094bcea484e7afed01c45e11cadd3f9639f7d00689bcbf9
3
+ metadata.gz: 87d08d5ced6ba4a1e729c5f4a2a2e5640d70cee6abee913e929cb90158bbb700
4
+ data.tar.gz: e5bdccc6bc61e9013ee0ddcee53fd896405639d14061439d23be6dc4b241a43c
5
5
  SHA512:
6
- metadata.gz: 92052de17be30fd1cd49ab3890caf7490a8cda3dafa7d2b9333efc3101d50532401e17700a98b637202478621170e0874f7c8e47e8b39f852417b30d87214a65
7
- data.tar.gz: 8f27d2bce28666eeae9da9b0e08fdec7e8b85f175293be92dcffccb1af32fe45a7a60ecd089f6f8e3819111af7bfe31538d709c07791e69e82d1a64527f64f54
6
+ metadata.gz: 59f7d14c1993cf80675c915b3ee4b9a3cf8da65b0f22f89eefb4e95b813cda162e3ca1e34799c686c685c4a308b5dfce0a68e6ef41781843244ba29eb542ecd2
7
+ data.tar.gz: ec3e2972772fa5eada008ec9e997de986a8531c99bdb1278636d1838bfabc0756bb37cb535b60d48d025af9b50ae915a43fc36b36b3fd5e0890ea6382eb38228
File without changes
File without changes
File without changes
@@ -1,12 +1,12 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubypitaya', '3.16.0'
3
+ gem 'rubypitaya', '3.17.0'
4
4
 
5
5
  group :development do
6
6
  gem 'pry', '0.14.2'
7
7
  gem 'rspec', '3.12.0'
8
8
  gem 'listen', '3.8.0'
9
- gem 'bundler', '2.3.26'
10
- gem 'cucumber', '8.0.0'
11
- gem 'sinatra-contrib', '3.0.5'
9
+ gem 'bundler', '2.4.10'
10
+ gem 'cucumber', '9.1.1'
11
+ gem 'sinatra-contrib', '3.2.0'
12
12
  end
@@ -1,139 +1,151 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activemodel (7.0.4)
5
- activesupport (= 7.0.4)
6
- activerecord (7.0.4)
7
- activemodel (= 7.0.4)
8
- activesupport (= 7.0.4)
9
- activesupport (7.0.4)
4
+ activemodel (7.1.2)
5
+ activesupport (= 7.1.2)
6
+ activerecord (7.1.2)
7
+ activemodel (= 7.1.2)
8
+ activesupport (= 7.1.2)
9
+ timeout (>= 0.4.0)
10
+ activesupport (7.1.2)
11
+ base64
12
+ bigdecimal
10
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ connection_pool (>= 2.2.5)
15
+ drb
11
16
  i18n (>= 1.6, < 2)
12
17
  minitest (>= 5.1)
18
+ mutex_m
13
19
  tzinfo (~> 2.0)
20
+ base64 (0.2.0)
21
+ bigdecimal (3.1.5)
14
22
  builder (3.2.4)
15
23
  coderay (1.1.3)
16
- concurrent-ruby (1.1.10)
17
- connection_pool (2.3.0)
18
- cucumber (8.0.0)
24
+ concurrent-ruby (1.2.3)
25
+ connection_pool (2.4.1)
26
+ cucumber (9.1.1)
19
27
  builder (~> 3.2, >= 3.2.4)
20
- cucumber-ci-environment (~> 9.0, >= 9.0.4)
21
- cucumber-core (~> 11.0, >= 11.0.0)
22
- cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
23
- cucumber-gherkin (~> 23.0, >= 23.0.1)
24
- cucumber-html-formatter (~> 19.1, >= 19.1.0)
25
- cucumber-messages (~> 18.0, >= 18.0.0)
26
- diff-lcs (~> 1.5, >= 1.5.0)
27
- mime-types (~> 3.4, >= 3.4.1)
28
+ cucumber-ci-environment (~> 9.2, >= 9.2.0)
29
+ cucumber-core (~> 12.0)
30
+ cucumber-cucumber-expressions (~> 17.0)
31
+ cucumber-gherkin (> 24, < 27)
32
+ cucumber-html-formatter (> 20.3, < 22)
33
+ cucumber-messages (> 19, < 25)
34
+ diff-lcs (~> 1.5)
35
+ mini_mime (~> 1.1, >= 1.1.5)
28
36
  multi_test (~> 1.1, >= 1.1.0)
29
- sys-uname (~> 1.2, >= 1.2.2)
30
- cucumber-ci-environment (9.1.0)
31
- cucumber-core (11.0.0)
32
- cucumber-gherkin (~> 23.0, >= 23.0.1)
33
- cucumber-messages (~> 18.0, >= 18.0.0)
34
- cucumber-tag-expressions (~> 4.1, >= 4.1.0)
35
- cucumber-cucumber-expressions (15.2.0)
36
- cucumber-gherkin (23.0.1)
37
- cucumber-messages (~> 18.0, >= 18.0.0)
38
- cucumber-html-formatter (19.2.0)
39
- cucumber-messages (~> 18.0, >= 18.0.0)
40
- cucumber-messages (18.0.0)
41
- cucumber-tag-expressions (4.1.0)
37
+ sys-uname (~> 1.2, >= 1.2.3)
38
+ cucumber-ci-environment (9.2.0)
39
+ cucumber-core (12.0.0)
40
+ cucumber-gherkin (>= 25, < 27)
41
+ cucumber-messages (>= 20, < 23)
42
+ cucumber-tag-expressions (~> 5.0, >= 5.0.4)
43
+ cucumber-cucumber-expressions (17.0.1)
44
+ cucumber-gherkin (26.2.0)
45
+ cucumber-messages (>= 19.1.4, < 22.1)
46
+ cucumber-html-formatter (21.2.0)
47
+ cucumber-messages (> 19, < 25)
48
+ cucumber-messages (22.0.0)
49
+ cucumber-tag-expressions (5.0.6)
42
50
  diff-lcs (1.5.0)
43
- etcdv3 (0.11.5)
51
+ drb (2.2.0)
52
+ ruby2_keywords
53
+ etcdv3 (0.11.6)
44
54
  grpc (~> 1.17)
45
- ffi (1.15.5)
46
- google-protobuf (3.21.12-x86_64-linux)
47
- googleapis-common-protos-types (1.5.0)
48
- google-protobuf (~> 3.14)
49
- grpc (1.50.0-x86_64-linux)
50
- google-protobuf (~> 3.21)
55
+ ffi (1.16.3)
56
+ google-protobuf (3.25.2-x86_64-linux)
57
+ googleapis-common-protos-types (1.11.0)
58
+ google-protobuf (~> 3.18)
59
+ grpc (1.60.0-x86_64-linux)
60
+ google-protobuf (~> 3.25)
51
61
  googleapis-common-protos-types (~> 1.0)
52
- i18n (1.12.0)
62
+ i18n (1.14.1)
53
63
  concurrent-ruby (~> 1.0)
54
64
  listen (3.8.0)
55
65
  rb-fsevent (~> 0.10, >= 0.10.3)
56
66
  rb-inotify (~> 0.9, >= 0.9.10)
57
67
  method_source (1.0.0)
58
- mime-types (3.4.1)
59
- mime-types-data (~> 3.2015)
60
- mime-types-data (3.2022.0105)
61
- minitest (5.17.0)
68
+ mini_mime (1.1.5)
69
+ minitest (5.21.1)
62
70
  multi_json (1.15.0)
63
71
  multi_test (1.1.0)
64
72
  mustermann (3.0.0)
65
73
  ruby2_keywords (~> 0.0.1)
66
- nats-pure (2.2.1)
67
- ostruct (0.5.5)
68
- pg (1.4.5)
74
+ mutex_m (0.2.0)
75
+ nats-pure (2.4.0)
76
+ concurrent-ruby (~> 1.0)
77
+ ostruct (0.6.0)
78
+ pg (1.5.4)
69
79
  pry (0.14.2)
70
80
  coderay (~> 1.1)
71
81
  method_source (~> 1.0)
72
- rack (2.2.5)
73
- rack-protection (3.0.5)
74
- rack
75
- rake (13.0.6)
82
+ rack (2.2.8)
83
+ rack-protection (3.2.0)
84
+ base64 (>= 0.1.0)
85
+ rack (~> 2.2, >= 2.2.4)
86
+ rake (13.1.0)
76
87
  rb-fsevent (0.11.2)
77
88
  rb-inotify (0.10.1)
78
89
  ffi (~> 1.0)
79
- redis (5.0.5)
80
- redis-client (>= 0.9.0)
81
- redis-client (0.12.0)
90
+ redis (5.0.8)
91
+ redis-client (>= 0.17.0)
92
+ redis-client (0.19.1)
82
93
  connection_pool
83
94
  rspec (3.12.0)
84
95
  rspec-core (~> 3.12.0)
85
96
  rspec-expectations (~> 3.12.0)
86
97
  rspec-mocks (~> 3.12.0)
87
- rspec-core (3.12.0)
98
+ rspec-core (3.12.2)
88
99
  rspec-support (~> 3.12.0)
89
- rspec-expectations (3.12.2)
100
+ rspec-expectations (3.12.3)
90
101
  diff-lcs (>= 1.2.0, < 2.0)
91
102
  rspec-support (~> 3.12.0)
92
- rspec-mocks (3.12.2)
103
+ rspec-mocks (3.12.6)
93
104
  diff-lcs (>= 1.2.0, < 2.0)
94
105
  rspec-support (~> 3.12.0)
95
- rspec-support (3.12.0)
106
+ rspec-support (3.12.1)
96
107
  ruby2_keywords (0.0.5)
97
- rubypitaya (3.16.0)
98
- activerecord (= 7.0.4)
99
- etcdv3 (= 0.11.5)
100
- google-protobuf (= 3.21.12)
101
- nats-pure (= 2.2.1)
102
- ostruct (= 0.5.5)
103
- pg (= 1.4.5)
104
- rake (= 13.0.6)
105
- redis (= 5.0.5)
106
- sinatra (= 3.0.5)
107
- webrick (= 1.7.0)
108
- sinatra (3.0.5)
108
+ rubypitaya (3.17.0)
109
+ activerecord (= 7.1.2)
110
+ etcdv3 (= 0.11.6)
111
+ google-protobuf (= 3.25.2)
112
+ nats-pure (= 2.4.0)
113
+ ostruct (= 0.6.0)
114
+ pg (= 1.5.4)
115
+ rake (= 13.1.0)
116
+ redis (= 5.0.8)
117
+ sinatra (= 3.2.0)
118
+ webrick (= 1.8.1)
119
+ sinatra (3.2.0)
109
120
  mustermann (~> 3.0)
110
121
  rack (~> 2.2, >= 2.2.4)
111
- rack-protection (= 3.0.5)
122
+ rack-protection (= 3.2.0)
112
123
  tilt (~> 2.0)
113
- sinatra-contrib (3.0.5)
114
- multi_json
124
+ sinatra-contrib (3.2.0)
125
+ multi_json (>= 0.0.2)
115
126
  mustermann (~> 3.0)
116
- rack-protection (= 3.0.5)
117
- sinatra (= 3.0.5)
127
+ rack-protection (= 3.2.0)
128
+ sinatra (= 3.2.0)
118
129
  tilt (~> 2.0)
119
- sys-uname (1.2.2)
130
+ sys-uname (1.2.3)
120
131
  ffi (~> 1.1)
121
- tilt (2.0.11)
122
- tzinfo (2.0.5)
132
+ tilt (2.3.0)
133
+ timeout (0.4.1)
134
+ tzinfo (2.0.6)
123
135
  concurrent-ruby (~> 1.0)
124
- webrick (1.7.0)
136
+ webrick (1.8.1)
125
137
 
126
138
  PLATFORMS
127
139
  x86_64-linux
128
140
 
129
141
  DEPENDENCIES
130
- bundler (= 2.3.26)
131
- cucumber (= 8.0.0)
142
+ bundler (= 2.4.10)
143
+ cucumber (= 9.1.1)
132
144
  listen (= 3.8.0)
133
145
  pry (= 0.14.2)
134
146
  rspec (= 3.12.0)
135
- rubypitaya (= 3.16.0)
136
- sinatra-contrib (= 3.0.5)
147
+ rubypitaya (= 3.17.0)
148
+ sinatra-contrib (= 3.2.0)
137
149
 
138
150
  BUNDLED WITH
139
- 2.3.26
151
+ 2.4.10
File without changes
File without changes
@@ -27,6 +27,9 @@ class AppInitializer < RubyPitaya::InitializerBase
27
27
  # - info
28
28
  # - log information
29
29
  #
30
+ # - handlers
31
+ # - List of all handlers
32
+ #
30
33
  # services:
31
34
  # - redis
32
35
  # - link:
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- FROM ruby:3.1.3-slim
1
+ FROM ruby:3.2.2-slim
2
2
 
3
3
  ENV LANG=C.UTF-8
4
4
  ENV LC_ALL=C.UTF-8
@@ -6,7 +6,7 @@ ENV LC_ALL=C.UTF-8
6
6
  RUN apt update && \
7
7
  apt install -y --no-install-recommends \
8
8
  git \
9
- netcat \
9
+ netcat-traditional \
10
10
  libpq-dev \
11
11
  build-essential \
12
12
  && rm -rf /var/lib/apt/lists/*
@@ -15,11 +15,8 @@ WORKDIR /app/rubypitaya/
15
15
 
16
16
  COPY Gemfile Gemfile.lock ./
17
17
 
18
- RUN bundle config --global jobs 4 && \
19
- bundle config --global set clean 'true' \
20
- bundle config --global git.allow_insecure true && \
21
- # bundle config set path './vendor/bundle' && \
22
- bundle install
18
+ # RUN bundle config set path './vendor/bundle' && \
19
+ RUN bundle install
23
20
 
24
21
  COPY . .
25
22
 
@@ -1,4 +1,4 @@
1
- FROM ruby:3.1.3-slim as builder
1
+ FROM ruby:3.2.2-slim as builder
2
2
 
3
3
  RUN apt update && \
4
4
  apt install -y --no-install-recommends \
@@ -10,9 +10,6 @@ RUN apt update && \
10
10
  COPY Gemfile Gemfile.lock ./
11
11
 
12
12
  RUN bundle config set --global without "development" \
13
- bundle config --global jobs 4 && \
14
- bundle config --global set clean 'true' \
15
- bundle config --global git.allow_insecure true && \
16
13
  bundle install
17
14
 
18
15
  RUN rm -rf /usr/local/bundle/cache && \
@@ -29,14 +26,14 @@ RUN rm -rf /usr/local/bundle/cache && \
29
26
 
30
27
  # RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
31
28
 
32
- FROM ruby:3.1.3-slim
29
+ FROM ruby:3.2.2-slim
33
30
 
34
31
  ENV LANG=C.UTF-8
35
32
  ENV LC_ALL=C.UTF-8
36
33
 
37
34
  RUN apt update && \
38
35
  apt install -y --no-install-recommends \
39
- netcat \
36
+ netcat-traditional \
40
37
  libpq5 \
41
38
  && rm -rf /var/lib/apt/lists/*
42
39
 
@@ -1,67 +1,67 @@
1
- version: '3'
2
- services:
3
- nats:
4
- image: 'nats:2.6.2-alpine'
5
- restart: always
6
- ports:
7
- - '4222:4222'
8
-
9
- etcd:
10
- image: 'quay.io/coreos/etcd:v3.5.5'
11
- restart: always
12
- environment:
13
- ETCD_ADVERTISE_CLIENT_URLS: 'http://localhost:2379'
14
- ETCD_LISTEN_CLIENT_URLS: 'http://0.0.0.0:2379'
15
- ports:
16
- - '2379:2379'
17
-
18
- redis:
19
- image: 'redis:6.0.5-alpine'
20
- restart: always
21
- ports:
22
- - '9001:6379'
23
-
24
- db:
25
- image: 'postgres:14.0-alpine'
26
- restart: always
27
- volumes:
28
- - 'postgres:/var/lib/postgresql/data'
29
- environment:
30
- POSTGRES_USER: 'postgres'
31
- POSTGRES_PASSWORD: 'postgres'
32
- ports:
33
- - '9100:5432'
34
-
35
- connector:
36
- image: 'registry.gitlab.com/lucianopc/pitaya-connector:0.1.0'
37
- restart: always
38
- depends_on:
39
- - 'db'
40
- - 'nats'
41
- - 'etcd'
42
- - 'redis'
43
- ports:
44
- - '3250:3250'
45
- environment:
46
- PITAYA_CLUSTER_RPC_SERVER_NATS_CONNECT: 'nats://nats:4222'
47
- PITAYA_CLUSTER_RPC_CLIENT_NATS_CONNECT: 'nats://nats:4222'
48
- PITAYA_CLUSTER_RPC_CLIENT_NATS_REQUESTTIMEOUT: '10s'
49
- PITAYA_CLUSTER_SD_ETCD_ENDPOINTS: 'etcd:2379'
50
- PITAYA_CLUSTER_SD_ETCD_PREFIX: 'rubypitaya/'
51
- SERVER_ROUTES: 'rubypitaya'
52
-
53
- rubypitaya:
54
- image: 'registry.gitlab.com/dungeonrpg/dungeonrpg/backend:${RUBYPITAYA_IMAGE_TAG}'
55
- restart: always
56
- depends_on:
57
- - 'db'
58
- - 'nats'
59
- - 'etcd'
60
- - 'redis'
61
- - 'connector'
62
- working_dir: '/app/rubypitaya'
63
- environment:
64
- RUBYPITAYA_SERVER_ENVIRONMENT: 'production'
65
-
66
- volumes:
67
- postgres:
1
+ version: '3'
2
+ services:
3
+ nats:
4
+ image: 'nats:2.6.2-alpine'
5
+ restart: always
6
+ ports:
7
+ - '4222:4222'
8
+
9
+ etcd:
10
+ image: 'quay.io/coreos/etcd:v3.5.5'
11
+ restart: always
12
+ environment:
13
+ ETCD_ADVERTISE_CLIENT_URLS: 'http://localhost:2379'
14
+ ETCD_LISTEN_CLIENT_URLS: 'http://0.0.0.0:2379'
15
+ ports:
16
+ - '2379:2379'
17
+
18
+ redis:
19
+ image: 'redis:6.0.5-alpine'
20
+ restart: always
21
+ ports:
22
+ - '9001:6379'
23
+
24
+ db:
25
+ image: 'postgres:14.0-alpine'
26
+ restart: always
27
+ volumes:
28
+ - 'postgres:/var/lib/postgresql/data'
29
+ environment:
30
+ POSTGRES_USER: 'postgres'
31
+ POSTGRES_PASSWORD: 'postgres'
32
+ ports:
33
+ - '9100:5432'
34
+
35
+ connector:
36
+ image: 'registry.gitlab.com/lucianopc/pitaya-connector:0.1.0'
37
+ restart: always
38
+ depends_on:
39
+ - 'db'
40
+ - 'nats'
41
+ - 'etcd'
42
+ - 'redis'
43
+ ports:
44
+ - '3250:3250'
45
+ environment:
46
+ PITAYA_CLUSTER_RPC_SERVER_NATS_CONNECT: 'nats://nats:4222'
47
+ PITAYA_CLUSTER_RPC_CLIENT_NATS_CONNECT: 'nats://nats:4222'
48
+ PITAYA_CLUSTER_RPC_CLIENT_NATS_REQUESTTIMEOUT: '10s'
49
+ PITAYA_CLUSTER_SD_ETCD_ENDPOINTS: 'etcd:2379'
50
+ PITAYA_CLUSTER_SD_ETCD_PREFIX: 'rubypitaya/'
51
+ SERVER_ROUTES: 'rubypitaya'
52
+
53
+ rubypitaya:
54
+ image: 'registry.gitlab.com/dungeonrpg/dungeonrpg/backend:${RUBYPITAYA_IMAGE_TAG}'
55
+ restart: always
56
+ depends_on:
57
+ - 'db'
58
+ - 'nats'
59
+ - 'etcd'
60
+ - 'redis'
61
+ - 'connector'
62
+ working_dir: '/app/rubypitaya'
63
+ environment:
64
+ RUBYPITAYA_SERVER_ENVIRONMENT: 'production'
65
+
66
+ volumes:
67
+ postgres:
@@ -1,6 +1,6 @@
1
- #!/bin/bash
2
-
3
- IMAGE_ENV=$1
4
- IMAGE_TAG=$2
5
-
1
+ #!/bin/bash
2
+
3
+ IMAGE_ENV=$1
4
+ IMAGE_TAG=$2
5
+
6
6
  sed -i "s/$IMAGE_ENV=.*/$IMAGE_ENV=$IMAGE_TAG/" .env
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes