Skip to content

Commit

Permalink
Update image and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
David Garcia committed Sep 14, 2018
1 parent b12ca7e commit e849e0c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 26 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
.gitignore
README.md
Changelog.md
tags
42 changes: 18 additions & 24 deletions Dockerfile
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"]
19 changes: 18 additions & 1 deletion README.md
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.

0 comments on commit e849e0c

Please sign in to comment.