-
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.
- Loading branch information
David Garcia
committed
Sep 14, 2018
1 parent
b12ca7e
commit e849e0c
Showing
3 changed files
with
36 additions
and
26 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 |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
.gitignore | ||
README.md | ||
Changelog.md | ||
tags |
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,34 +1,28 @@ | ||
FROM ruby:2.4.1-alpine | ||
FROM ruby:2.4.4-alpine | ||
|
||
RUN apk add --no-cache --virtual .runtime \ | ||
RUN apk add --no-cache --virtual runtime-deps \ | ||
git \ | ||
&& apk add --no-cache --virtual .builddeps \ | ||
bash \ | ||
&& apk add --no-cache --virtual build-deps \ | ||
alpine-sdk \ | ||
cmake | ||
cmake \ | ||
g++ \ | ||
openssl-dev | ||
|
||
RUN mkdir /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN gem install pronto -v 0.9.5 | ||
RUN gem install pronto-brakeman -v 0.9.1 \ | ||
&& gem install pronto-fasterer -v 0.9.0 \ | ||
&& gem install pronto-flay -v 0.9.0 \ | ||
&& gem install pronto-haml -v 0.9.0 \ | ||
&& gem install pronto-jshint -v 0.9.0 \ | ||
&& gem install pronto-rails_best_practices -v 0.9.0 \ | ||
&& gem install pronto-reek -v 0.9.1 \ | ||
&& gem install pronto-rubocop -v 0.9.1 \ | ||
&& gem install pronto-scss -v 0.9.1 | ||
|
||
RUN gem install bundler \ | ||
&& gem install pronto \ | ||
&& gem install pronto-brakeman \ | ||
&& gem install pronto-fasterer \ | ||
&& gem install pronto-flay \ | ||
&& gem install pronto-haml \ | ||
&& gem install pronto-jshint \ | ||
&& gem install pronto-rails_best_practices \ | ||
&& gem install pronto-rails_schema \ | ||
&& gem install pronto-reek \ | ||
&& gem install pronto-rubocop \ | ||
&& gem install pronto-scss \ | ||
&& gem install pronto-shellcheck \ | ||
&& gem install pronto-slim_lint | ||
|
||
|
||
ONBUILD ARG PRONTO_GITHUB_ACCESS_TOKEN | ||
ONBUILD ARG PRONTO_GITLAB_API_PRIVATE_TOKEN | ||
ONBUILD ARG PRONTO_BITBUCKET_USERNAME | ||
ONBUILD ARG PRONTO_BITBUCKET_PASSWORD | ||
RUN apk del build-deps | ||
|
||
CMD ["pronto", "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 |
---|---|---|
@@ -1,3 +1,20 @@ | ||
# Docker-pronto | ||
|
||
A docker image to run code linting with [pronto](https://github.com/mmozuras/pronto) | ||
A docker image to run code linting with [pronto](https://github.com/prontolabs/pronto) | ||
|
||
## Running it | ||
|
||
Set one of the following environment variables in CI: | ||
``` | ||
PRONTO_GITHUB_ACCESS_TOKEN | ||
PRONTO_GITLAB_API_PRIVATE_TOKEN | ||
PRONTO_BITBUCKET_USERNAME | ||
PRONTO_BITBUCKET_PASSWORD | ||
``` | ||
|
||
Run this: | ||
``` | ||
docker run -e "PRONTO_GITHUB_ACCESS_TOKEN=$PRONTO_GITHUB_ACCESS_TOKEN" -v $(pwd):/usr/src/app dgmora/pronto pronto run -c origin/master -f github_pr | ||
``` | ||
|
||
Then, you will have comments in that PR. |