cpl 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yml +60 -0
  3. data/.gitignore +14 -0
  4. data/.rspec +1 -0
  5. data/.rubocop.yml +16 -0
  6. data/CHANGELOG.md +5 -0
  7. data/CONTRIBUTING.md +12 -0
  8. data/Gemfile +7 -0
  9. data/Gemfile.lock +104 -0
  10. data/LICENSE +21 -0
  11. data/README.md +318 -0
  12. data/Rakefile +11 -0
  13. data/bin/cpl +6 -0
  14. data/cpl +15 -0
  15. data/cpl.gemspec +42 -0
  16. data/docs/commands.md +219 -0
  17. data/docs/troubleshooting.md +6 -0
  18. data/examples/circleci.yml +106 -0
  19. data/examples/controlplane.yml +44 -0
  20. data/lib/command/base.rb +177 -0
  21. data/lib/command/build_image.rb +25 -0
  22. data/lib/command/config.rb +33 -0
  23. data/lib/command/delete.rb +50 -0
  24. data/lib/command/env.rb +21 -0
  25. data/lib/command/exists.rb +23 -0
  26. data/lib/command/latest_image.rb +18 -0
  27. data/lib/command/logs.rb +29 -0
  28. data/lib/command/open.rb +33 -0
  29. data/lib/command/promote_image.rb +27 -0
  30. data/lib/command/ps.rb +40 -0
  31. data/lib/command/ps_restart.rb +34 -0
  32. data/lib/command/ps_start.rb +34 -0
  33. data/lib/command/ps_stop.rb +34 -0
  34. data/lib/command/run.rb +106 -0
  35. data/lib/command/run_detached.rb +148 -0
  36. data/lib/command/setup.rb +59 -0
  37. data/lib/command/test.rb +26 -0
  38. data/lib/core/config.rb +81 -0
  39. data/lib/core/controlplane.rb +128 -0
  40. data/lib/core/controlplane_api.rb +51 -0
  41. data/lib/core/controlplane_api_cli.rb +10 -0
  42. data/lib/core/controlplane_api_direct.rb +42 -0
  43. data/lib/core/scripts.rb +34 -0
  44. data/lib/cpl/version.rb +5 -0
  45. data/lib/cpl.rb +139 -0
  46. data/lib/main.rb +5 -0
  47. data/postgres.md +436 -0
  48. data/redis.md +112 -0
  49. data/script/generate_commands_docs +60 -0
  50. data/templates/gvc.yml +13 -0
  51. data/templates/identity.yml +2 -0
  52. data/templates/memcached.yml +23 -0
  53. data/templates/postgres.yml +31 -0
  54. data/templates/rails.yml +25 -0
  55. data/templates/redis.yml +20 -0
  56. data/templates/sidekiq.yml +28 -0
  57. metadata +312 -0
@@ -0,0 +1,25 @@
1
+ kind: workload
2
+ name: rails
3
+ spec:
4
+ type: standard
5
+ containers:
6
+ - name: rails
7
+ cpu: 512m
8
+ inheritEnv: true
9
+ image: '/org/APP_ORG/image/APP_IMAGE'
10
+ memory: 1Gi
11
+ ports:
12
+ - number: 3000
13
+ protocol: http
14
+ defaultOptions:
15
+ autoscaling:
16
+ maxScale: 1
17
+ capacityAI: false
18
+ timeoutSeconds: 60
19
+ firewallConfig:
20
+ external:
21
+ inboundAllowCIDR:
22
+ - 0.0.0.0/0
23
+ outboundAllowCIDR:
24
+ - 0.0.0.0/0
25
+ identityLink: /org/APP_ORG/gvc/APP_GVC/identity/APP_GVC-identity
@@ -0,0 +1,20 @@
1
+ kind: workload
2
+ name: redis
3
+ spec:
4
+ type: standard
5
+ containers:
6
+ - name: redis
7
+ cpu: 3m
8
+ memory: 20Mi
9
+ image: 'redis:latest'
10
+ ports:
11
+ - number: 6379
12
+ protocol: tcp
13
+ defaultOptions:
14
+ autoscaling:
15
+ metric: latency
16
+ maxScale: 1
17
+ capacityAI: false
18
+ firewallConfig:
19
+ internal:
20
+ inboundAllowType: same-gvc
@@ -0,0 +1,28 @@
1
+ kind: workload
2
+ name: sidekiq
3
+ spec:
4
+ type: standard
5
+ containers:
6
+ - name: sidekiq
7
+ args:
8
+ - bundle
9
+ - exec
10
+ - sidekiq
11
+ - '-C'
12
+ - config/sidekiq.yml
13
+ cpu: 50m
14
+ inheritEnv: true
15
+ image: '/org/APP_ORG/image/APP_IMAGE'
16
+ memory: 256Mi
17
+ ports:
18
+ - number: 7433
19
+ protocol: http
20
+ defaultOptions:
21
+ autoscaling:
22
+ maxScale: 1
23
+ capacityAI: false
24
+ firewallConfig:
25
+ external:
26
+ outboundAllowCIDR:
27
+ - 0.0.0.0/0
28
+ identityLink: /org/APP_ORG/gvc/APP_GVC/identity/APP_GVC-identity
metadata ADDED
@@ -0,0 +1,312 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cpl
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Justin Gordon
8
+ - Sergey Tarasov
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2023-02-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: cgi
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.3.6
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.3.6
28
+ - !ruby/object:Gem::Dependency
29
+ name: debug
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 1.7.1
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 1.7.1
42
+ - !ruby/object:Gem::Dependency
43
+ name: dotenv
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 2.8.1
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 2.8.1
56
+ - !ruby/object:Gem::Dependency
57
+ name: json
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 2.6.3
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 2.6.3
70
+ - !ruby/object:Gem::Dependency
71
+ name: net-http
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 0.3.2
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 0.3.2
84
+ - !ruby/object:Gem::Dependency
85
+ name: pathname
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 0.2.1
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 0.2.1
98
+ - !ruby/object:Gem::Dependency
99
+ name: psych
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 5.1.0
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 5.1.0
112
+ - !ruby/object:Gem::Dependency
113
+ name: tempfile
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: 0.1.3
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: 0.1.3
126
+ - !ruby/object:Gem::Dependency
127
+ name: thor
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: 1.2.1
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 1.2.1
140
+ - !ruby/object:Gem::Dependency
141
+ name: yaml
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: 0.2.1
147
+ type: :runtime
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: 0.2.1
154
+ - !ruby/object:Gem::Dependency
155
+ name: rspec
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: 3.12.0
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: 3.12.0
168
+ - !ruby/object:Gem::Dependency
169
+ name: rubocop
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: 1.45.0
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: 1.45.0
182
+ - !ruby/object:Gem::Dependency
183
+ name: rubocop-rake
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: 0.6.0
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: 0.6.0
196
+ - !ruby/object:Gem::Dependency
197
+ name: rubocop-rspec
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: 2.18.1
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: 2.18.1
210
+ - !ruby/object:Gem::Dependency
211
+ name: simplecov
212
+ requirement: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - "~>"
215
+ - !ruby/object:Gem::Version
216
+ version: 0.22.0
217
+ type: :development
218
+ prerelease: false
219
+ version_requirements: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - "~>"
222
+ - !ruby/object:Gem::Version
223
+ version: 0.22.0
224
+ description: Helper CLI for migrating from Heroku to Control Plane
225
+ email:
226
+ - justin@shakacode.com
227
+ - sergey@shakacode.com
228
+ executables:
229
+ - cpl
230
+ extensions: []
231
+ extra_rdoc_files: []
232
+ files:
233
+ - ".github/workflows/ci.yml"
234
+ - ".gitignore"
235
+ - ".rspec"
236
+ - ".rubocop.yml"
237
+ - CHANGELOG.md
238
+ - CONTRIBUTING.md
239
+ - Gemfile
240
+ - Gemfile.lock
241
+ - LICENSE
242
+ - README.md
243
+ - Rakefile
244
+ - bin/cpl
245
+ - cpl
246
+ - cpl.gemspec
247
+ - docs/commands.md
248
+ - docs/troubleshooting.md
249
+ - examples/circleci.yml
250
+ - examples/controlplane.yml
251
+ - lib/command/base.rb
252
+ - lib/command/build_image.rb
253
+ - lib/command/config.rb
254
+ - lib/command/delete.rb
255
+ - lib/command/env.rb
256
+ - lib/command/exists.rb
257
+ - lib/command/latest_image.rb
258
+ - lib/command/logs.rb
259
+ - lib/command/open.rb
260
+ - lib/command/promote_image.rb
261
+ - lib/command/ps.rb
262
+ - lib/command/ps_restart.rb
263
+ - lib/command/ps_start.rb
264
+ - lib/command/ps_stop.rb
265
+ - lib/command/run.rb
266
+ - lib/command/run_detached.rb
267
+ - lib/command/setup.rb
268
+ - lib/command/test.rb
269
+ - lib/core/config.rb
270
+ - lib/core/controlplane.rb
271
+ - lib/core/controlplane_api.rb
272
+ - lib/core/controlplane_api_cli.rb
273
+ - lib/core/controlplane_api_direct.rb
274
+ - lib/core/scripts.rb
275
+ - lib/cpl.rb
276
+ - lib/cpl/version.rb
277
+ - lib/main.rb
278
+ - postgres.md
279
+ - redis.md
280
+ - script/generate_commands_docs
281
+ - templates/gvc.yml
282
+ - templates/identity.yml
283
+ - templates/memcached.yml
284
+ - templates/postgres.yml
285
+ - templates/rails.yml
286
+ - templates/redis.yml
287
+ - templates/sidekiq.yml
288
+ homepage: https://github.com/shakacode/heroku-to-control-plane
289
+ licenses:
290
+ - MIT
291
+ metadata:
292
+ rubygems_mfa_required: 'true'
293
+ post_install_message:
294
+ rdoc_options: []
295
+ require_paths:
296
+ - lib
297
+ required_ruby_version: !ruby/object:Gem::Requirement
298
+ requirements:
299
+ - - ">="
300
+ - !ruby/object:Gem::Version
301
+ version: 2.7.0
302
+ required_rubygems_version: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ requirements: []
308
+ rubygems_version: 3.4.6
309
+ signing_key:
310
+ specification_version: 4
311
+ summary: Heroku to Control Plane
312
+ test_files: []