-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from trln/dockerization
Dockerization
- Loading branch information
Showing
31 changed files
with
875 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Dockerfile | ||
dbinit/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
# Relaxed.Ruby.Style | ||
|
||
## Version 2.5 | ||
|
||
Style/Alias: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylealias | ||
|
||
Style/AsciiComments: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styleasciicomments | ||
|
||
Style/BeginBlock: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylebeginblock | ||
|
||
Style/BlockDelimiters: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styleblockdelimiters | ||
|
||
Style/CommentAnnotation: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylecommentannotation | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styledocumentation | ||
|
||
Layout/DotPosition: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#layoutdotposition | ||
|
||
Style/DoubleNegation: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styledoublenegation | ||
|
||
Style/EndBlock: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styleendblock | ||
|
||
Style/FormatString: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styleformatstring | ||
|
||
Style/IfUnlessModifier: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styleifunlessmodifier | ||
|
||
Style/Lambda: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylelambda | ||
|
||
Style/ModuleFunction: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylemodulefunction | ||
|
||
Style/MultilineBlockChain: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylemultilineblockchain | ||
|
||
Style/NegatedIf: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylenegatedif | ||
|
||
Style/NegatedWhile: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylenegatedwhile | ||
|
||
Style/NumericPredicate: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylenumericpredicate | ||
|
||
Style/ParallelAssignment: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styleparallelassignment | ||
|
||
Style/PercentLiteralDelimiters: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylepercentliteraldelimiters | ||
|
||
Style/PerlBackrefs: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styleperlbackrefs | ||
|
||
Style/Semicolon: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylesemicolon | ||
|
||
Style/SignalException: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylesignalexception | ||
|
||
Style/SingleLineBlockParams: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylesinglelineblockparams | ||
|
||
Style/SingleLineMethods: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylesinglelinemethods | ||
|
||
Layout/SpaceBeforeBlockBraces: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#layoutspacebeforeblockbraces | ||
|
||
Layout/SpaceInsideParens: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#layoutspaceinsideparens | ||
|
||
Style/SpecialGlobalVars: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylespecialglobalvars | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylestringliterals | ||
|
||
Style/TrailingCommaInArguments: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarguments | ||
|
||
Style/TrailingCommaInArrayLiteral: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarrayliteral | ||
|
||
Style/TrailingCommaInHashLiteral: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainhashliteral | ||
|
||
Style/SymbolArray: | ||
Enabled: false | ||
StyleGuide: http://relaxed.ruby.style/#stylesymbolarray | ||
|
||
Style/WhileUntilModifier: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylewhileuntilmodifier | ||
|
||
Style/WordArray: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#stylewordarray | ||
|
||
Lint/AmbiguousRegexpLiteral: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#lintambiguousregexpliteral | ||
|
||
Lint/AssignmentInCondition: | ||
Enabled: false | ||
StyleGuide: https://relaxed.ruby.style/#lintassignmentincondition | ||
|
||
Layout/LineLength: | ||
Enabled: false | ||
|
||
Metrics: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ARG RUBY_VERSION=2.7-alpine | ||
FROM ruby:${RUBY_VERSION} AS base | ||
|
||
# note here that if you don't use an alpine flavor this | ||
# package update will not work! | ||
|
||
RUN apk update && apk upgrade && apk add --no-cache build-base sqlite-dev libpq-dev libxml2-dev libxslt-dev yajl git nodejs bash sqlite | ||
|
||
|
||
COPY ./ /app/ | ||
|
||
WORKDIR /app | ||
|
||
FROM base AS builder | ||
|
||
RUN bundle config set path /gems && bundle install -j $(nproc) | ||
|
||
FROM base | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /gems /gems | ||
|
||
RUN bundle config set path /gems | ||
|
||
COPY entrypoint /usr/local/bin/entrypoint | ||
ENTRYPOINT ["/usr/local/bin/entrypoint"] | ||
EXPOSE 3000 | ||
CMD ["server"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.