Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN gem install bundler && \
bundle install -j 4 && \
rm -fr /usr/share/ri

RUN apk --update add git

RUN adduser -u 9000 -D app
COPY . /usr/src/app
RUN chown -R app:app /usr/src/app
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: image test
.PHONY: image test docs

IMAGE_NAME ?= codeclimate/codeclimate-rubocop

Expand All @@ -7,3 +7,10 @@ image:

test: image
docker run --rm $(IMAGE_NAME) sh -c "cd /usr/src/app && bundle exec rake"

docs: image
docker run --rm \
--user root \
--workdir /usr/src/app \
--volume $(PWD):/usr/src/app \
$(IMAGE_NAME) sh -c "bundle exec rake docs:scrape"