-
Notifications
You must be signed in to change notification settings - Fork 19
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 #4 from AdWerx/colocate-base-image
Colocate base image
- Loading branch information
Showing
4 changed files
with
43 additions
and
43 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 |
---|---|---|
@@ -1,13 +1,35 @@ | ||
FROM adwerx/pronto-ruby:1.2.0 | ||
FROM ruby:2.5 | ||
|
||
WORKDIR /runner | ||
LABEL maintainer="Josh Bielick <[email protected]>" | ||
|
||
ENV GITHUB_WORKSPACE /runner | ||
ENV BUILD_PACKAGES bash ruby-dev build-essential cmake openssl yamllint | ||
ENV RUNTIME_PACKAGES git | ||
|
||
COPY Gemfile Gemfile.lock ./ | ||
RUN apt-get update && \ | ||
apt-get install -y $BUILD_PACKAGES && \ | ||
apt-get install -y $RUNTIME_PACKAGES && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN bundle | ||
RUN gem install pronto | ||
|
||
COPY . ./ | ||
ENV RUNNERS pronto-rubocop \ | ||
pronto-brakeman \ | ||
pronto-bundler_audit \ | ||
pronto-rails_best_practices \ | ||
pronto-rails_schema \ | ||
pronto-poper \ | ||
pronto-yamllint \ | ||
pronto-reek \ | ||
pronto-flay \ | ||
pronto-fasterer \ | ||
pronto-scss | ||
|
||
ENTRYPOINT ["/runner/pronto"] | ||
RUN gem install $RUNNERS | ||
|
||
ENV PATH $GEM_HOME/bin:$BUNDLE_PATH/gems/bin:$PATH | ||
|
||
WORKDIR /data | ||
|
||
ENTRYPOINT ["/usr/local/bundle/bin/pronto"] | ||
|
||
CMD ["run"] |
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,13 @@ | ||
FROM adwerx/pronto-ruby:1.2.0 | ||
|
||
WORKDIR /runner | ||
|
||
ENV GITHUB_WORKSPACE /runner | ||
|
||
COPY Gemfile Gemfile.lock ./ | ||
|
||
RUN bundle | ||
|
||
COPY . ./ | ||
|
||
ENTRYPOINT ["/runner/pronto"] |
This file was deleted.
Oops, something went wrong.
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