rubypitaya 3.16.0 → 3.17.1
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 +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 +0 -0
- 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 +0 -0
- 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 +4 -7
- data/lib/rubypitaya/app-template/docker/stag/docker-compose.stag.yaml +67 -67
- data/lib/rubypitaya/app-template/docker/stag/update_image +5 -5
- data/lib/rubypitaya/app-template/docker-compose.yml +0 -0
- 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 +3 -0
- data/lib/rubypitaya/core/database_connector.rb +0 -0
- data/lib/rubypitaya/core/etcd_connector.rb +0 -0
- 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 +4 -3
- 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 +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c8fb40d9e4a0f24d40d3399d23e1c739685147b49c17f5fdaf06b62d4f6f98
|
4
|
+
data.tar.gz: 4b8e8fc959fec09eaf1a9c2cda02f9e8ed8512a184a86258e174c7f4417f0b68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad42027f76cc415eb5c5956f6beda45660baed6f38c0e0b830d94bb60960e87a521194b598ba9576eed373ca72764f394f0da2d1b476241adacf8d13c4c6c9c2
|
7
|
+
data.tar.gz: 6831faa8d987cb9bd6f467e061c8f72ab6db75227b92f76633a3df7778f6ae9c45ce96873ab8fa194f0a35273008d1fdc0a854066a3bfc7df21850e4d5329844
|
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.1'
|
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.1)
|
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.1)
|
148
|
+
sinatra-contrib (= 3.2.0)
|
137
149
|
|
138
150
|
BUNDLED WITH
|
139
|
-
2.
|
151
|
+
2.4.10
|
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
|
@@ -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,10 +9,7 @@ RUN apt update && \
|
|
9
9
|
|
10
10
|
COPY Gemfile Gemfile.lock ./
|
11
11
|
|
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 && \
|
12
|
+
RUN bundle config set --global without "development" && \
|
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.
|
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
|
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
|