uffizzi-cli 0.3.5 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop.yml DELETED
@@ -1,578 +0,0 @@
1
- require:
2
- - rubocop-minitest
3
-
4
- AllCops:
5
- NewCops: disable
6
-
7
- Naming/AccessorMethodName:
8
- Description: Check the naming of accessor methods for get_/set_.
9
- Enabled: false
10
-
11
- Style/Alias:
12
- Description: 'Use alias_method instead of alias.'
13
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
14
- Enabled: false
15
-
16
- Style/ArrayJoin:
17
- Description: 'Use Array#join instead of Array#*.'
18
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
19
- Enabled: false
20
-
21
- Style/AsciiComments:
22
- Description: 'Use only ascii symbols in comments.'
23
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
24
- Enabled: false
25
-
26
- Style/OptionalBooleanParameter:
27
- Enabled: false
28
-
29
- Naming/AsciiIdentifiers:
30
- Description: 'Use only ascii symbols in identifiers.'
31
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
32
- Enabled: false
33
-
34
- Style/Attr:
35
- Description: 'Checks for uses of Module#attr.'
36
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
37
- Enabled: false
38
-
39
- Metrics/BlockNesting:
40
- Description: 'Avoid excessive block nesting'
41
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
42
- Enabled: false
43
-
44
- Style/CaseEquality:
45
- Description: 'Avoid explicit use of the case equality operator(===).'
46
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
47
- Enabled: false
48
-
49
- Style/CharacterLiteral:
50
- Description: 'Checks for uses of character literals.'
51
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
52
- Enabled: false
53
-
54
- Style/ClassAndModuleChildren:
55
- Description: 'Checks style of children classes and modules.'
56
- Enabled: false
57
-
58
- Metrics/ClassLength:
59
- Description: 'Avoid classes longer than 100 lines of code.'
60
- Enabled: false
61
-
62
- Metrics/ModuleLength:
63
- Description: 'Avoid modules longer than 100 lines of code.'
64
- Enabled: false
65
-
66
- Style/ClassVars:
67
- Description: 'Avoid the use of class variables.'
68
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
69
- Enabled: false
70
-
71
- Style/CollectionMethods:
72
- Enabled: true
73
- PreferredMethods:
74
- find: detect
75
- inject: reduce
76
- collect: map
77
- find_all: select
78
-
79
- Style/ColonMethodCall:
80
- Description: 'Do not use :: for method call.'
81
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
82
- Enabled: false
83
-
84
- Style/CommentAnnotation:
85
- Description: >-
86
- Checks formatting of special comments
87
- (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
88
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
89
- Enabled: false
90
-
91
- Style/PreferredHashMethods:
92
- Description: 'Checks use of `has_key?` and `has_value?` Hash methods.'
93
- StyleGuide: '#hash-key'
94
- Enabled: false
95
-
96
- Style/Documentation:
97
- Description: 'Document classes and non-namespace modules.'
98
- Enabled: false
99
-
100
- Style/DoubleNegation:
101
- Description: 'Checks for uses of double negation (!!).'
102
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
103
- Enabled: false
104
-
105
- Style/EachWithObject:
106
- Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
107
- Enabled: false
108
-
109
- Style/EmptyLiteral:
110
- Description: 'Prefer literals to Array.new/Hash.new/String.new.'
111
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
112
- Enabled: false
113
-
114
- Style/Encoding:
115
- Enabled: false
116
-
117
- Style/EvenOdd:
118
- Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
119
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
120
- Enabled: false
121
-
122
- Naming/FileName:
123
- Description: 'Use snake_case for source file names.'
124
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
125
- Enabled: false
126
-
127
- Style/FrozenStringLiteralComment:
128
- Description: >-
129
- Add the frozen_string_literal comment to the top of files
130
- to help transition from Ruby 2.3.0 to Ruby 3.0.
131
- Enabled: true
132
-
133
- Style/FormatString:
134
- Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
135
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
136
- Enabled: false
137
-
138
- Style/GlobalVars:
139
- Description: 'Do not introduce global variables.'
140
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
141
- Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
142
- Enabled: false
143
-
144
- Style/GuardClause:
145
- Description: 'Check for conditionals that can be replaced with guard clauses'
146
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
147
- Enabled: false
148
-
149
- Style/IfUnlessModifier:
150
- Description: >-
151
- Favor modifier if/unless usage when you have a
152
- single-line body.
153
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
154
- Enabled: false
155
-
156
- Style/IfWithSemicolon:
157
- Description: 'Do not use if x; .... Use the ternary operator instead.'
158
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
159
- Enabled: false
160
-
161
- Style/InlineComment:
162
- Description: 'Avoid inline comments.'
163
- Enabled: false
164
-
165
- Style/Lambda:
166
- Description: 'Use the new lambda literal syntax for single-line blocks.'
167
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
168
- Enabled: false
169
-
170
- Style/LambdaCall:
171
- Description: 'Use lambda.call(...) instead of lambda.(...).'
172
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
173
- Enabled: false
174
-
175
- Style/LineEndConcatenation:
176
- Description: >-
177
- Use \ instead of + or << to concatenate two string literals at
178
- line end.
179
- Enabled: false
180
-
181
- Metrics/AbcSize:
182
- Description: >-
183
- A calculated magnitude based on number of assignments,
184
- branches, and conditions.
185
- Enabled: false
186
-
187
- Metrics/BlockLength:
188
- CountComments: true
189
- Max: 50
190
- IgnoredMethods: []
191
-
192
- Metrics/CyclomaticComplexity:
193
- Description: >-
194
- A complexity metric that is strongly correlated to the number
195
- of test cases needed to validate a method.
196
- Enabled: false
197
-
198
- Metrics/MethodLength:
199
- Description: 'Avoid methods longer than 10 lines of code.'
200
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
201
- Enabled: false
202
-
203
- Style/MixinUsage:
204
- Enabled: true
205
- Exclude:
206
- - test/test_helper.rb
207
-
208
- Style/ModuleFunction:
209
- Description: 'Checks for usage of `extend self` in modules.'
210
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
211
- Enabled: false
212
-
213
- Style/MultilineBlockChain:
214
- Description: 'Avoid multi-line chains of blocks.'
215
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
216
- Enabled: false
217
-
218
- Style/NegatedIf:
219
- Description: >-
220
- Favor unless over if for negative conditions
221
- (or control flow or).
222
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
223
- Enabled: false
224
-
225
- Style/NegatedWhile:
226
- Description: 'Favor until over while for negative conditions.'
227
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
228
- Enabled: false
229
-
230
- Style/Next:
231
- Description: 'Use `next` to skip iteration instead of a condition at the end.'
232
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
233
- Enabled: false
234
-
235
- Style/NilComparison:
236
- Description: 'Prefer x.nil? to x == nil.'
237
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
238
- Enabled: false
239
-
240
- Style/Not:
241
- Description: 'Use ! instead of not.'
242
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
243
- Enabled: false
244
-
245
- Style/NumericLiterals:
246
- Description: >-
247
- Add underscores to large numeric literals to improve their
248
- readability.
249
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
250
- Enabled: false
251
-
252
- Style/OneLineConditional:
253
- Description: >-
254
- Favor the ternary operator(?:) over
255
- if/then/else/end constructs.
256
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
257
- Enabled: false
258
-
259
- Naming/BinaryOperatorParameterName:
260
- Description: 'When defining binary operators, name the argument other.'
261
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
262
- Enabled: false
263
-
264
- Metrics/ParameterLists:
265
- Description: 'Avoid parameter lists longer than three or four parameters.'
266
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
267
- Enabled: false
268
-
269
- Style/PercentLiteralDelimiters:
270
- Description: 'Use `%`-literal delimiters consistently'
271
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
272
- Enabled: false
273
-
274
- Style/PerlBackrefs:
275
- Description: 'Avoid Perl-style regex back references.'
276
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
277
- Enabled: false
278
-
279
- Naming/PredicateName:
280
- Description: 'Check the names of predicate methods.'
281
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
282
- ForbiddenPrefixes:
283
- - is_
284
- Exclude:
285
- - spec/**/*
286
-
287
- Style/Proc:
288
- Description: 'Use proc instead of Proc.new.'
289
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
290
- Enabled: false
291
-
292
- Style/RaiseArgs:
293
- Description: 'Checks the arguments passed to raise/fail.'
294
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
295
- Enabled: false
296
-
297
- Style/RegexpLiteral:
298
- Description: 'Use / or %r around regular expressions.'
299
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
300
- Enabled: false
301
-
302
- Style/Sample:
303
- Description: >-
304
- Use `sample` instead of `shuffle.first`,
305
- `shuffle.last`, and `shuffle[Fixnum]`.
306
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
307
- Enabled: false
308
-
309
- Style/SelfAssignment:
310
- Description: >-
311
- Checks for places where self-assignment shorthand should have
312
- been used.
313
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
314
- Enabled: false
315
-
316
- Style/SingleLineBlockParams:
317
- Description: 'Enforces the names of some block params.'
318
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
319
- Enabled: false
320
-
321
- Style/SingleLineMethods:
322
- Description: 'Avoid single-line methods.'
323
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
324
- Enabled: false
325
-
326
- Style/SignalException:
327
- Description: 'Checks for proper usage of fail and raise.'
328
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
329
- Enabled: false
330
-
331
- Style/SpecialGlobalVars:
332
- Description: 'Avoid Perl-style global variables.'
333
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
334
- Enabled: false
335
-
336
- Style/StringLiterals:
337
- Description: 'Checks if uses of quotes match the configured preference.'
338
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
339
- EnforcedStyle: single_quotes
340
- Enabled: true
341
-
342
- Style/StructInheritance:
343
- Enabled: true
344
-
345
- Style/SymbolArray:
346
- EnforcedStyle: brackets
347
-
348
- Style/SymbolProc:
349
- Enabled: true
350
-
351
- Style/TrailingCommaInArguments:
352
- Description: 'Checks for trailing comma in argument lists.'
353
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
354
- EnforcedStyleForMultiline: comma
355
- SupportedStylesForMultiline:
356
- - comma
357
- - consistent_comma
358
- - no_comma
359
- Enabled: true
360
-
361
- Style/TrailingCommaInArrayLiteral:
362
- Description: 'Checks for trailing comma in array literals.'
363
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
364
- EnforcedStyleForMultiline: comma
365
- SupportedStylesForMultiline:
366
- - comma
367
- - consistent_comma
368
- - no_comma
369
- Enabled: true
370
-
371
- Style/TrailingCommaInHashLiteral:
372
- Description: 'Checks for trailing comma in hash literals.'
373
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
374
- EnforcedStyleForMultiline: comma
375
- SupportedStylesForMultiline:
376
- - comma
377
- - consistent_comma
378
- - no_comma
379
- Enabled: true
380
-
381
- Style/TrivialAccessors:
382
- Description: 'Prefer attr_* methods to trivial readers/writers.'
383
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
384
- Enabled: false
385
-
386
- Style/VariableInterpolation:
387
- Description: >-
388
- Don't interpolate global, instance and class variables
389
- directly in strings.
390
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
391
- Enabled: false
392
-
393
- Style/WhenThen:
394
- Description: 'Use when x then ... for one-line cases.'
395
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
396
- Enabled: false
397
-
398
- Style/WhileUntilModifier:
399
- Description: >-
400
- Favor modifier while/until usage when you have a
401
- single-line body.
402
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
403
- Enabled: false
404
-
405
- Style/WordArray:
406
- Description: 'Use %w or %W for arrays of words.'
407
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
408
- EnforcedStyle: brackets
409
-
410
- Style/MethodCallWithArgsParentheses:
411
- Description: 'Use parentheses for method calls with arguments.'
412
- Enabled: true
413
- IgnoredMethods:
414
- - require
415
- - require_relative
416
- - raise
417
- - head
418
- - render
419
- - respond_with
420
- - puts
421
- Exclude:
422
- - Gemfile
423
- - uffizzi.gemspec
424
- - test/test_helper.rb
425
-
426
- Layout/ParameterAlignment:
427
- Description: 'Here we check if the parameters on a multi-line method call or definition are aligned.'
428
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
429
- Enabled: false
430
-
431
- Layout/ConditionPosition:
432
- Description: >-
433
- Checks for condition placed in a confusing position relative to
434
- the keyword.
435
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
436
- Enabled: false
437
-
438
- Layout/DotPosition:
439
- Description: 'Checks the position of the dot in multi-line method calls.'
440
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
441
- EnforcedStyle: leading
442
-
443
- Layout/ExtraSpacing:
444
- Description: 'Do not use unnecessary spacing.'
445
- Enabled: true
446
-
447
- Layout/MultilineOperationIndentation:
448
- Description: >-
449
- Checks indentation of binary operations that span more than
450
- one line.
451
- Enabled: true
452
- EnforcedStyle: indented
453
-
454
- Layout/MultilineMethodCallIndentation:
455
- Description: >-
456
- Checks indentation of method calls with the dot operator
457
- that span more than one line.
458
- Enabled: true
459
- EnforcedStyle: indented
460
-
461
- Layout/InitialIndentation:
462
- Description: >-
463
- Checks the indentation of the first non-blank non-comment line in a file.
464
- Enabled: false
465
-
466
- Layout/EndAlignment:
467
- Description: >-
468
- Checks whether the end keywords are aligned properly.
469
- EnforcedStyleAlignWith: variable
470
-
471
- Layout/LineLength:
472
- Description: 'Limit lines to 140 characters.'
473
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
474
- Max: 140
475
-
476
- Lint/AmbiguousOperator:
477
- Description: >-
478
- Checks for ambiguous operators in the first argument of a
479
- method invocation without parentheses.
480
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
481
- Enabled: false
482
-
483
- Lint/AmbiguousRegexpLiteral:
484
- Description: >-
485
- Checks for ambiguous regexp literals in the first argument of
486
- a method invocation without parenthesis.
487
- Enabled: false
488
-
489
- Lint/AssignmentInCondition:
490
- Description: "Don't use assignment in conditions."
491
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
492
- Enabled: false
493
-
494
- Lint/CircularArgumentReference:
495
- Description: "Don't refer to the keyword argument in the default value."
496
- Enabled: false
497
-
498
- Lint/DeprecatedClassMethods:
499
- Description: 'Check for deprecated class method calls.'
500
- Enabled: false
501
-
502
- Lint/DuplicateHashKey:
503
- Description: 'Check for duplicate keys in hash literals.'
504
- Enabled: false
505
-
506
- Lint/EachWithObjectArgument:
507
- Description: 'Check for immutable argument given to each_with_object.'
508
- Enabled: false
509
-
510
- Lint/ElseLayout:
511
- Description: 'Check for odd code arrangement in an else block.'
512
- Enabled: false
513
-
514
- Lint/FlipFlop:
515
- Description: 'Checks for flip flops'
516
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
517
- Enabled: false
518
-
519
- Lint/FormatParameterMismatch:
520
- Description: 'The number of parameters to format/sprint must match the fields.'
521
- Enabled: false
522
-
523
- Lint/SuppressedException:
524
- Description: "Don't suppress exception."
525
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
526
- Enabled: false
527
-
528
- Lint/LiteralAsCondition:
529
- Description: 'Checks of literals used in conditions.'
530
- Enabled: false
531
-
532
- Lint/LiteralInInterpolation:
533
- Description: 'Checks for literals used in interpolation.'
534
- Enabled: false
535
-
536
- Lint/Loop:
537
- Description: >-
538
- Use Kernel#loop with break rather than begin/end/until or
539
- begin/end/while for post-loop tests.
540
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
541
- Enabled: false
542
-
543
- Lint/NestedMethodDefinition:
544
- Description: 'Do not use nested method definitions.'
545
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
546
- Enabled: false
547
-
548
- Lint/NonLocalExitFromIterator:
549
- Description: 'Do not use return in iterator to cause non-local exit.'
550
- Enabled: false
551
-
552
- Lint/ParenthesesAsGroupedExpression:
553
- Description: >-
554
- Checks for method calls with a space before the opening
555
- parenthesis.
556
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
557
- Enabled: false
558
-
559
- Lint/RedundantCopDisableDirective:
560
- Description: >-
561
- Checks for rubocop:disable comments that can be removed.
562
- Note: this cop is not disabled when disabling all cops.
563
- It must be explicitly disabled.
564
- Enabled: false
565
-
566
- Lint/RequireParentheses:
567
- Description: >-
568
- Use parentheses in the method call to avoid confusion
569
- about precedence.
570
- Enabled: false
571
-
572
- Lint/UnderscorePrefixedVariableName:
573
- Description: 'Do not use prefix `_` for a variable that is used.'
574
- Enabled: false
575
-
576
- Lint/Void:
577
- Description: 'Possible use of operator/literal/variable in void context.'
578
- Enabled: false
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2021-11-12
4
-
5
- - Initial release
data/CONTRIBUTING.md DELETED
@@ -1,13 +0,0 @@
1
- ## Contributing to the Uffizzi Command-line Interface
2
-
3
- First, thank you for considering contributing to Uffizzi! You are what drive the open source community.
4
-
5
- Uffizzi welcomes all contributions from everyone, not just Pull Requests. You can also help by filing detailed bug reports, proposing new features, and sharing Continuous Previews and Uffizzi with your local community.
6
-
7
- **Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://kcd.im/pull-request)
8
-
9
- If you find a security vulnerability, DO NOT open an issue. Email <info@uffizzi.com> instead.
10
-
11
- ## Community
12
-
13
- Please join us on the [Uffizzi Slack](https://join.slack.com/t/uffizzi/shared_invite/zt-ffr4o3x0-J~0yVT6qgFV~wmGm19Ux9A) where we look forward to discussing any feature requests, bugs, and other proposed changes.
data/Dockerfile DELETED
@@ -1,46 +0,0 @@
1
- FROM ruby:3.0.3-alpine AS builder
2
-
3
- RUN apk --update add --no-cache \
4
- curl-dev \
5
- ruby-dev \
6
- build-base \
7
- git \
8
- curl \
9
- ruby-json \
10
- openssl \
11
- groff \
12
- mandoc \
13
- man-pages \
14
- bash
15
-
16
- RUN mkdir -p /gem
17
- WORKDIR /gem
18
-
19
- ENV GEM_HOME="/usr/local/bundle"
20
- ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH
21
-
22
- RUN gem install bundler -v 2.3.9
23
-
24
- COPY lib/uffizzi/version.rb ./lib/uffizzi/
25
- COPY uffizzi.gemspec .
26
- COPY Gemfile* .
27
- RUN bundle install --jobs 4
28
-
29
- COPY . .
30
-
31
- RUN bundle exec rake install
32
-
33
- # M-M-M-M-MULTISTAGE!!!
34
- FROM ruby:3.0.3-alpine
35
-
36
- RUN apk --update add --no-cache mandoc
37
-
38
- WORKDIR /root/
39
-
40
- COPY docker-entrypoint.sh .
41
- RUN chmod +x docker-entrypoint.sh
42
-
43
- COPY --from=builder /gem/pkg/uffizzi-cli* .
44
- RUN gem install ./uffizzi-cli*
45
-
46
- ENTRYPOINT ["/root/docker-entrypoint.sh"]
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec