rubypitaya 3.15.3 → 3.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubypitaya/app-template/.gitignore +0 -0
- data/lib/rubypitaya/app-template/.gitlab-ci.yml +0 -0
- data/lib/rubypitaya/app-template/.irbrc +0 -0
- data/lib/rubypitaya/app-template/Gemfile +4 -4
- data/lib/rubypitaya/app-template/Gemfile.lock +94 -82
- data/lib/rubypitaya/app-template/Makefile +4 -4
- data/lib/rubypitaya/app-template/Rakefile +0 -0
- data/lib/rubypitaya/app-template/app/app_initializer.rb +3 -0
- data/lib/rubypitaya/app-template/app/bll/player_bll.rb +0 -0
- data/lib/rubypitaya/app-template/app/config/initial_player.json +0 -0
- data/lib/rubypitaya/app-template/app/constants/status_codes.rb +0 -0
- data/lib/rubypitaya/app-template/app/handlers/error_handler.rb +0 -0
- data/lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb +0 -0
- data/lib/rubypitaya/app-template/app/handlers/player_handler.rb +0 -0
- data/lib/rubypitaya/app-template/app/http/hello_world_http.rb +0 -0
- data/lib/rubypitaya/app-template/app/http/views/hello_world.erb +0 -0
- data/lib/rubypitaya/app-template/app/migrations/1606736477_create_player_migration.rb +0 -0
- data/lib/rubypitaya/app-template/app/models/player.rb +0 -0
- data/lib/rubypitaya/app-template/app/models/user.rb +0 -0
- data/lib/rubypitaya/app-template/app/setup/rubypitaya.yml +1 -1
- data/lib/rubypitaya/app-template/config/routes.rb +0 -0
- data/lib/rubypitaya/app-template/docker/dev/Dockerfile +4 -7
- data/lib/rubypitaya/app-template/docker/prod/Dockerfile +8 -8
- data/lib/rubypitaya/app-template/docker/stag/docker-compose.stag.yaml +67 -0
- data/lib/rubypitaya/app-template/docker/stag/update_image +6 -0
- data/lib/rubypitaya/app-template/docker-compose.yml +8 -5
- data/lib/rubypitaya/app-template/features/hello_world.feature +0 -0
- data/lib/rubypitaya/app-template/features/player.feature +0 -0
- data/lib/rubypitaya/app-template/features/step_definitions/player_steps.rb +0 -0
- data/lib/rubypitaya/app-template/features/step_definitions/rubypitaya_steps.rb +0 -0
- data/lib/rubypitaya/app-template/features/support/env.rb +0 -0
- data/lib/rubypitaya/app-template/helm/Chart.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/config-maps/nginx-config.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/deployments/connector.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/deployments/gameserver-nginx.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/deployments/rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/pods/gameserver.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/role-bindings/rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/roles/rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/service-accounts/rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/services/connector.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/services/etcd.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/services/gameserver-nginx.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/services/gameserver.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/services/nats.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/services/redis.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/services/rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/statefulsets/etcd.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/statefulsets/nats.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/templates/statefulsets/redis.yaml +0 -0
- data/lib/rubypitaya/app-template/helm/values.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/README.md +0 -0
- data/lib/rubypitaya/app-template/kubernetes/deployment-connector.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/deployment-rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/gameplay/deployment-nginx.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/gameplay/gameplay-template.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/gameplay/nginx.conf +0 -0
- data/lib/rubypitaya/app-template/kubernetes/gameplay/service-nginx.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/persistent-volume.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/role-rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/rolebinding-rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/service-connector.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/service-etcd.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/service-nats.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/service-postgres.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/service-redis.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/service-rubypitaya.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-etcd.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-nats.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-postgres.yaml +0 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-redis.yaml +0 -0
- data/lib/rubypitaya/app-template/plugins.yaml +0 -0
- data/lib/rubypitaya/app-template/spec/hello_world_handler_spec.rb +0 -0
- data/lib/rubypitaya/app-template/spec/player_handler_spec.rb +0 -0
- data/lib/rubypitaya/app-template/spec/redis_service_spec.rb +0 -0
- data/lib/rubypitaya/app-template/spec/spec_helper.rb +0 -0
- data/lib/rubypitaya/core/app/migrations/0000000001_create_user_migration.rb +0 -0
- data/lib/rubypitaya/core/app/models/user.rb +0 -0
- data/lib/rubypitaya/core/app/services/redis_service.rb +0 -0
- data/lib/rubypitaya/core/application_files_importer.rb +0 -0
- data/lib/rubypitaya/core/config.rb +0 -0
- data/lib/rubypitaya/core/config_core.rb +0 -0
- data/lib/rubypitaya/core/config_hash_extension.rb +0 -0
- data/lib/rubypitaya/core/database_config.rb +2 -0
- data/lib/rubypitaya/core/database_connector.rb +0 -0
- data/lib/rubypitaya/core/etcd_connector.rb +16 -6
- data/lib/rubypitaya/core/handler_base.rb +0 -0
- data/lib/rubypitaya/core/handler_router.rb +2 -0
- data/lib/rubypitaya/core/helpers/setup_helper.rb +0 -0
- data/lib/rubypitaya/core/http_base.rb +0 -0
- data/lib/rubypitaya/core/http_routes.rb +1 -1
- data/lib/rubypitaya/core/initializer_base.rb +0 -0
- data/lib/rubypitaya/core/initializer_broadcast.rb +0 -0
- data/lib/rubypitaya/core/initializer_content.rb +3 -2
- data/lib/rubypitaya/core/instance_holder.rb +0 -0
- data/lib/rubypitaya/core/main.rb +62 -60
- data/lib/rubypitaya/core/nats_connector.rb +0 -0
- data/lib/rubypitaya/core/parameters.rb +0 -0
- data/lib/rubypitaya/core/path.rb +0 -0
- data/lib/rubypitaya/core/postman.rb +0 -0
- data/lib/rubypitaya/core/protos/nats_connector.proto +0 -0
- data/lib/rubypitaya/core/protos/nats_connector_pb.rb +0 -0
- data/lib/rubypitaya/core/route_error.rb +0 -0
- data/lib/rubypitaya/core/routes_base.rb +0 -0
- data/lib/rubypitaya/core/service_base.rb +0 -0
- data/lib/rubypitaya/core/service_holder.rb +0 -0
- data/lib/rubypitaya/core/session.rb +0 -0
- data/lib/rubypitaya/core/setup.rb +0 -0
- data/lib/rubypitaya/core/spec-helpers/app_spec_helper.rb +2 -1
- data/lib/rubypitaya/core/spec-helpers/app_spec_helper_class.rb +0 -0
- data/lib/rubypitaya/core/spec-helpers/config_spec_helper.rb +0 -0
- data/lib/rubypitaya/core/spec-helpers/postman_spec_helper.rb +0 -0
- data/lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb +1 -1
- data/lib/rubypitaya/core/spec-helpers/setup_spec_helper.rb +0 -0
- data/lib/rubypitaya/core/status_codes.rb +0 -0
- data/lib/rubypitaya/core/templates/template_migration.rb.erb +0 -0
- data/lib/rubypitaya/version.rb +1 -1
- data/lib/rubypitaya.rb +0 -0
- metadata +34 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87d08d5ced6ba4a1e729c5f4a2a2e5640d70cee6abee913e929cb90158bbb700
|
4
|
+
data.tar.gz: e5bdccc6bc61e9013ee0ddcee53fd896405639d14061439d23be6dc4b241a43c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
10
|
-
gem 'cucumber', '
|
11
|
-
gem 'sinatra-contrib', '3.0
|
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.
|
5
|
-
activesupport (= 7.
|
6
|
-
activerecord (7.
|
7
|
-
activemodel (= 7.
|
8
|
-
activesupport (= 7.
|
9
|
-
|
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.
|
17
|
-
connection_pool (2.
|
18
|
-
cucumber (
|
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.
|
21
|
-
cucumber-core (~>
|
22
|
-
cucumber-cucumber-expressions (~>
|
23
|
-
cucumber-gherkin (
|
24
|
-
cucumber-html-formatter (
|
25
|
-
cucumber-messages (
|
26
|
-
diff-lcs (~> 1.5
|
27
|
-
|
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.
|
30
|
-
cucumber-ci-environment (9.
|
31
|
-
cucumber-core (
|
32
|
-
cucumber-gherkin (
|
33
|
-
cucumber-messages (
|
34
|
-
cucumber-tag-expressions (~>
|
35
|
-
cucumber-cucumber-expressions (
|
36
|
-
cucumber-gherkin (
|
37
|
-
cucumber-messages (
|
38
|
-
cucumber-html-formatter (
|
39
|
-
cucumber-messages (
|
40
|
-
cucumber-messages (
|
41
|
-
cucumber-tag-expressions (
|
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
|
-
|
51
|
+
drb (2.2.0)
|
52
|
+
ruby2_keywords
|
53
|
+
etcdv3 (0.11.6)
|
44
54
|
grpc (~> 1.17)
|
45
|
-
ffi (1.
|
46
|
-
google-protobuf (3.
|
47
|
-
googleapis-common-protos-types (1.
|
48
|
-
google-protobuf (~> 3.
|
49
|
-
grpc (1.
|
50
|
-
google-protobuf (~> 3.
|
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.
|
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
|
-
|
59
|
-
|
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
|
-
|
67
|
-
|
68
|
-
|
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.
|
73
|
-
rack-protection (3.0
|
74
|
-
|
75
|
-
|
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.
|
80
|
-
redis-client (>= 0.
|
81
|
-
redis-client (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.
|
98
|
+
rspec-core (3.12.2)
|
88
99
|
rspec-support (~> 3.12.0)
|
89
|
-
rspec-expectations (3.12.
|
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.
|
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.
|
106
|
+
rspec-support (3.12.1)
|
96
107
|
ruby2_keywords (0.0.5)
|
97
|
-
rubypitaya (3.
|
98
|
-
activerecord (= 7.
|
99
|
-
etcdv3 (= 0.11.
|
100
|
-
google-protobuf (= 3.
|
101
|
-
nats-pure (= 2.
|
102
|
-
ostruct (= 0.
|
103
|
-
pg (= 1.4
|
104
|
-
rake (= 13.0
|
105
|
-
redis (= 5.0.
|
106
|
-
sinatra (= 3.0
|
107
|
-
webrick (= 1.
|
108
|
-
sinatra (3.0
|
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
|
122
|
+
rack-protection (= 3.2.0)
|
112
123
|
tilt (~> 2.0)
|
113
|
-
sinatra-contrib (3.0
|
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
|
117
|
-
sinatra (= 3.0
|
127
|
+
rack-protection (= 3.2.0)
|
128
|
+
sinatra (= 3.2.0)
|
118
129
|
tilt (~> 2.0)
|
119
|
-
sys-uname (1.2.
|
130
|
+
sys-uname (1.2.3)
|
120
131
|
ffi (~> 1.1)
|
121
|
-
tilt (2.0
|
122
|
-
|
132
|
+
tilt (2.3.0)
|
133
|
+
timeout (0.4.1)
|
134
|
+
tzinfo (2.0.6)
|
123
135
|
concurrent-ruby (~> 1.0)
|
124
|
-
webrick (1.
|
136
|
+
webrick (1.8.1)
|
125
137
|
|
126
138
|
PLATFORMS
|
127
139
|
x86_64-linux
|
128
140
|
|
129
141
|
DEPENDENCIES
|
130
|
-
bundler (= 2.
|
131
|
-
cucumber (=
|
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.
|
136
|
-
sinatra-contrib (= 3.0
|
147
|
+
rubypitaya (= 3.17.0)
|
148
|
+
sinatra-contrib (= 3.2.0)
|
137
149
|
|
138
150
|
BUNDLED WITH
|
139
|
-
2.
|
151
|
+
2.4.10
|
@@ -14,10 +14,10 @@ run:
|
|
14
14
|
build:
|
15
15
|
@docker-compose build
|
16
16
|
@docker-compose pull
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
# @echo "Copying vendor folder ..."
|
18
|
+
# @rm -rf ./vendor
|
19
|
+
# @sh -c "FOLDER=$(notdir $(shell pwd)); docker-compose run --no-deps --detach --name=rubypitaya rubypitaya; docker cp rubypitaya:/app/rubypitaya/vendor ."
|
20
|
+
# @docker rm -f rubypitaya
|
21
21
|
|
22
22
|
## Setup project dependencies
|
23
23
|
setup: clear
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
FROM ruby:3.
|
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
|
19
|
-
|
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
|
+
FROM ruby:3.2.2-slim as builder
|
2
2
|
|
3
3
|
RUN apt update && \
|
4
4
|
apt install -y --no-install-recommends \
|
@@ -9,33 +9,31 @@ RUN apt update && \
|
|
9
9
|
|
10
10
|
COPY Gemfile Gemfile.lock ./
|
11
11
|
|
12
|
-
RUN bundle config --global
|
13
|
-
bundle config --global set clean 'true' \
|
14
|
-
bundle config --global git.allow_insecure true && \
|
15
|
-
bundle config --global without "development test" && \
|
12
|
+
RUN bundle config set --global without "development" \
|
16
13
|
bundle install
|
17
14
|
|
18
15
|
RUN rm -rf /usr/local/bundle/cache && \
|
19
16
|
rm -rf /usr/local/bundle/build_info && \
|
20
17
|
rm -rf /usr/local/bundle/doc && \
|
21
18
|
rm -rf /usr/local/bundle/doc && \
|
22
|
-
find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/2.5/ -name "*.so" -delete && \
|
23
19
|
find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/2.6/ -name "*.so" -delete && \
|
24
20
|
find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/2.7/ -name "*.so" -delete && \
|
21
|
+
find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/3.0/ -name "*.so" -delete && \
|
22
|
+
find /usr/local/bundle/gems/grpc-*/src/ruby/lib/grpc/3.2/ -name "*.so" -delete && \
|
25
23
|
find /usr/local/bundle/gems/ -name "*.c" -delete && \
|
26
24
|
find /usr/local/bundle/gems/ -name "*.o" -delete && \
|
27
25
|
find /usr/local/bundle/gems/ -name "spec" -exec rm -rv {} +
|
28
26
|
|
29
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
|
30
28
|
|
31
|
-
FROM ruby:3.
|
29
|
+
FROM ruby:3.2.2-slim
|
32
30
|
|
33
31
|
ENV LANG=C.UTF-8
|
34
32
|
ENV LC_ALL=C.UTF-8
|
35
33
|
|
36
34
|
RUN apt update && \
|
37
35
|
apt install -y --no-install-recommends \
|
38
|
-
netcat \
|
36
|
+
netcat-traditional \
|
39
37
|
libpq5 \
|
40
38
|
&& rm -rf /var/lib/apt/lists/*
|
41
39
|
|
@@ -46,6 +44,8 @@ COPY --from=builder /usr/local/bundle /usr/local/bundle
|
|
46
44
|
|
47
45
|
WORKDIR /app/rubypitaya/
|
48
46
|
|
47
|
+
RUN bundle config set --global without "development"
|
48
|
+
|
49
49
|
COPY . .
|
50
50
|
|
51
51
|
ENTRYPOINT ["./docker/entrypoint.sh"]
|
@@ -0,0 +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:
|
@@ -6,12 +6,12 @@ services:
|
|
6
6
|
- '4222:4222'
|
7
7
|
|
8
8
|
etcd:
|
9
|
-
image: quay.io/coreos/etcd:v3.5.5
|
9
|
+
image: 'quay.io/coreos/etcd:v3.5.5'
|
10
10
|
environment:
|
11
|
-
|
12
|
-
|
11
|
+
ETCD_ADVERTISE_CLIENT_URLS: 'http://localhost:2379'
|
12
|
+
ETCD_LISTEN_CLIENT_URLS: 'http://0.0.0.0:2379'
|
13
13
|
ports:
|
14
|
-
- 2379:2379
|
14
|
+
- '2379:2379'
|
15
15
|
|
16
16
|
redis:
|
17
17
|
image: 'redis:6.0.5-alpine'
|
@@ -58,7 +58,8 @@ services:
|
|
58
58
|
working_dir: '/app/rubypitaya'
|
59
59
|
volumes:
|
60
60
|
- .:/app/rubypitaya
|
61
|
-
- /app/rubypitaya/vendor
|
61
|
+
# - /app/rubypitaya/vendor
|
62
|
+
# - ./vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.13.0/lib/rubypitaya/core:/app/rubypitaya/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.13.0/lib/rubypitaya/core
|
62
63
|
ports:
|
63
64
|
- '80:4567'
|
64
65
|
environment:
|
@@ -67,12 +68,14 @@ services:
|
|
67
68
|
rubypitaya-console:
|
68
69
|
<<: *rubypitaya
|
69
70
|
ports: []
|
71
|
+
command: 'exit'
|
70
72
|
|
71
73
|
rubypitaya-commands:
|
72
74
|
<<: *rubypitaya
|
73
75
|
depends_on:
|
74
76
|
- 'db'
|
75
77
|
ports: []
|
78
|
+
command: 'exit'
|
76
79
|
|
77
80
|
volumes:
|
78
81
|
postgres:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|