kuby-core 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +16 -0
- data/LICENSE +21 -0
- data/README.md +186 -0
- data/Rakefile +14 -0
- data/kuby-core.gemspec +27 -0
- data/lib/kuby.rb +112 -0
- data/lib/kuby/basic_logger.rb +22 -0
- data/lib/kuby/cli_base.rb +75 -0
- data/lib/kuby/definition.rb +29 -0
- data/lib/kuby/docker.rb +27 -0
- data/lib/kuby/docker/alpine.rb +62 -0
- data/lib/kuby/docker/assets_phase.rb +11 -0
- data/lib/kuby/docker/bundler_phase.rb +56 -0
- data/lib/kuby/docker/cli.rb +72 -0
- data/lib/kuby/docker/copy_phase.rb +23 -0
- data/lib/kuby/docker/credentials.rb +11 -0
- data/lib/kuby/docker/debian.rb +66 -0
- data/lib/kuby/docker/dockerfile.rb +128 -0
- data/lib/kuby/docker/errors.rb +22 -0
- data/lib/kuby/docker/layer_stack.rb +42 -0
- data/lib/kuby/docker/local_tags.rb +38 -0
- data/lib/kuby/docker/metadata.rb +69 -0
- data/lib/kuby/docker/package_list.rb +34 -0
- data/lib/kuby/docker/package_phase.rb +59 -0
- data/lib/kuby/docker/packages.rb +10 -0
- data/lib/kuby/docker/packages/managed_package.rb +29 -0
- data/lib/kuby/docker/packages/nodejs.rb +29 -0
- data/lib/kuby/docker/packages/package.rb +22 -0
- data/lib/kuby/docker/packages/yarn.rb +47 -0
- data/lib/kuby/docker/phase.rb +21 -0
- data/lib/kuby/docker/remote_tags.rb +24 -0
- data/lib/kuby/docker/setup_phase.rb +29 -0
- data/lib/kuby/docker/spec.rb +147 -0
- data/lib/kuby/docker/tags.rb +39 -0
- data/lib/kuby/docker/timestamp_tag.rb +36 -0
- data/lib/kuby/docker/webserver_phase.rb +51 -0
- data/lib/kuby/docker/yarn_phase.rb +11 -0
- data/lib/kuby/kubernetes.rb +16 -0
- data/lib/kuby/kubernetes/deployer.rb +94 -0
- data/lib/kuby/kubernetes/docker_config.rb +27 -0
- data/lib/kuby/kubernetes/errors.rb +22 -0
- data/lib/kuby/kubernetes/manifest.rb +56 -0
- data/lib/kuby/kubernetes/minikube_provider.rb +51 -0
- data/lib/kuby/kubernetes/plugin.rb +55 -0
- data/lib/kuby/kubernetes/plugins.rb +8 -0
- data/lib/kuby/kubernetes/plugins/nginx_ingress.rb +61 -0
- data/lib/kuby/kubernetes/plugins/rails_app.rb +16 -0
- data/lib/kuby/kubernetes/plugins/rails_app/database.rb +58 -0
- data/lib/kuby/kubernetes/plugins/rails_app/mysql.rb +142 -0
- data/lib/kuby/kubernetes/plugins/rails_app/plugin.rb +393 -0
- data/lib/kuby/kubernetes/plugins/rails_app/postgres.rb +10 -0
- data/lib/kuby/kubernetes/plugins/rails_app/rewrite_db_config.rb +13 -0
- data/lib/kuby/kubernetes/plugins/rails_app/sqlite.rb +10 -0
- data/lib/kuby/kubernetes/plugins/rails_app/tasks.rake +23 -0
- data/lib/kuby/kubernetes/provider.rb +77 -0
- data/lib/kuby/kubernetes/registry_secret.rb +26 -0
- data/lib/kuby/kubernetes/spec.rb +152 -0
- data/lib/kuby/middleware.rb +5 -0
- data/lib/kuby/middleware/health_check.rb +16 -0
- data/lib/kuby/railtie.rb +18 -0
- data/lib/kuby/tasks.rb +135 -0
- data/lib/kuby/tasks/kuby.rake +63 -0
- data/lib/kuby/trailing_hash.rb +19 -0
- data/lib/kuby/version.rb +3 -0
- metadata +233 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
module Kuby
|
2
|
+
class TrailingHash < Hash
|
3
|
+
def each
|
4
|
+
return to_enum(__method__) unless block_given?
|
5
|
+
|
6
|
+
seen_keys = []
|
7
|
+
keys_before = keys
|
8
|
+
|
9
|
+
until keys_before.empty?
|
10
|
+
keys_before.each do |k|
|
11
|
+
yield k, self[k]
|
12
|
+
seen_keys << k
|
13
|
+
end
|
14
|
+
|
15
|
+
keys_before = keys - seen_keys
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/kuby/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,233 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kuby-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Cameron Dutro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-06-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colorize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: docker-remote
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: krane
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: kuby-cert-manager
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: kube-dsl
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: kuby-kube-db
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: kubernetes-cli
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.1'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: railties
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '6.0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '6.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rouge
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.0'
|
139
|
+
description: Deploy your Rails app onto Kubernetes the easy way.
|
140
|
+
email:
|
141
|
+
- camertron@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- CHANGELOG.md
|
147
|
+
- Gemfile
|
148
|
+
- LICENSE
|
149
|
+
- README.md
|
150
|
+
- Rakefile
|
151
|
+
- kuby-core.gemspec
|
152
|
+
- lib/kuby.rb
|
153
|
+
- lib/kuby/basic_logger.rb
|
154
|
+
- lib/kuby/cli_base.rb
|
155
|
+
- lib/kuby/definition.rb
|
156
|
+
- lib/kuby/docker.rb
|
157
|
+
- lib/kuby/docker/alpine.rb
|
158
|
+
- lib/kuby/docker/assets_phase.rb
|
159
|
+
- lib/kuby/docker/bundler_phase.rb
|
160
|
+
- lib/kuby/docker/cli.rb
|
161
|
+
- lib/kuby/docker/copy_phase.rb
|
162
|
+
- lib/kuby/docker/credentials.rb
|
163
|
+
- lib/kuby/docker/debian.rb
|
164
|
+
- lib/kuby/docker/dockerfile.rb
|
165
|
+
- lib/kuby/docker/errors.rb
|
166
|
+
- lib/kuby/docker/layer_stack.rb
|
167
|
+
- lib/kuby/docker/local_tags.rb
|
168
|
+
- lib/kuby/docker/metadata.rb
|
169
|
+
- lib/kuby/docker/package_list.rb
|
170
|
+
- lib/kuby/docker/package_phase.rb
|
171
|
+
- lib/kuby/docker/packages.rb
|
172
|
+
- lib/kuby/docker/packages/managed_package.rb
|
173
|
+
- lib/kuby/docker/packages/nodejs.rb
|
174
|
+
- lib/kuby/docker/packages/package.rb
|
175
|
+
- lib/kuby/docker/packages/yarn.rb
|
176
|
+
- lib/kuby/docker/phase.rb
|
177
|
+
- lib/kuby/docker/remote_tags.rb
|
178
|
+
- lib/kuby/docker/setup_phase.rb
|
179
|
+
- lib/kuby/docker/spec.rb
|
180
|
+
- lib/kuby/docker/tags.rb
|
181
|
+
- lib/kuby/docker/timestamp_tag.rb
|
182
|
+
- lib/kuby/docker/webserver_phase.rb
|
183
|
+
- lib/kuby/docker/yarn_phase.rb
|
184
|
+
- lib/kuby/kubernetes.rb
|
185
|
+
- lib/kuby/kubernetes/deployer.rb
|
186
|
+
- lib/kuby/kubernetes/docker_config.rb
|
187
|
+
- lib/kuby/kubernetes/errors.rb
|
188
|
+
- lib/kuby/kubernetes/manifest.rb
|
189
|
+
- lib/kuby/kubernetes/minikube_provider.rb
|
190
|
+
- lib/kuby/kubernetes/plugin.rb
|
191
|
+
- lib/kuby/kubernetes/plugins.rb
|
192
|
+
- lib/kuby/kubernetes/plugins/nginx_ingress.rb
|
193
|
+
- lib/kuby/kubernetes/plugins/rails_app.rb
|
194
|
+
- lib/kuby/kubernetes/plugins/rails_app/database.rb
|
195
|
+
- lib/kuby/kubernetes/plugins/rails_app/mysql.rb
|
196
|
+
- lib/kuby/kubernetes/plugins/rails_app/plugin.rb
|
197
|
+
- lib/kuby/kubernetes/plugins/rails_app/postgres.rb
|
198
|
+
- lib/kuby/kubernetes/plugins/rails_app/rewrite_db_config.rb
|
199
|
+
- lib/kuby/kubernetes/plugins/rails_app/sqlite.rb
|
200
|
+
- lib/kuby/kubernetes/plugins/rails_app/tasks.rake
|
201
|
+
- lib/kuby/kubernetes/provider.rb
|
202
|
+
- lib/kuby/kubernetes/registry_secret.rb
|
203
|
+
- lib/kuby/kubernetes/spec.rb
|
204
|
+
- lib/kuby/middleware.rb
|
205
|
+
- lib/kuby/middleware/health_check.rb
|
206
|
+
- lib/kuby/railtie.rb
|
207
|
+
- lib/kuby/tasks.rb
|
208
|
+
- lib/kuby/tasks/kuby.rake
|
209
|
+
- lib/kuby/trailing_hash.rb
|
210
|
+
- lib/kuby/version.rb
|
211
|
+
homepage: http://github.com/getkuby/kuby-core
|
212
|
+
licenses: []
|
213
|
+
metadata: {}
|
214
|
+
post_install_message:
|
215
|
+
rdoc_options: []
|
216
|
+
require_paths:
|
217
|
+
- lib
|
218
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - ">="
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: '0'
|
228
|
+
requirements: []
|
229
|
+
rubygems_version: 3.0.6
|
230
|
+
signing_key:
|
231
|
+
specification_version: 4
|
232
|
+
summary: Deploy your Rails app onto Kubernetes the easy way.
|
233
|
+
test_files: []
|