Skip to content

Commit

Permalink
Include checkstyle binary
Browse files Browse the repository at this point in the history
Sourceforge is too flaky to depend on for binaries.
  • Loading branch information
markstory committed Mar 3, 2018
1 parent ff1c71f commit 7ff09d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Binary file added docker/checkstyle-7.7.jar
Binary file not shown.
9 changes: 3 additions & 6 deletions docker/checkstyle.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
FROM alpine:3.7

ENV CHECKSTYLE_URL https://downloads.sourceforge.net/project/checkstyle/checkstyle/7.7/checkstyle-7.7-all.jar

RUN mkdir /tool && mkdir /src
COPY checkstyle-7.7.jar /tool/checkstyle.jar

RUN apk update \
&& apk add curl openjdk8-jre \
# Get checkstyle and make wrapper script
&& curl -fsSL "$CHECKSTYLE_URL" -o /tool/checkstyle.jar \
&& apk add openjdk8-jre \
# Make wrapper script for checkstyle
&& echo '#!/bin/sh' >> /usr/bin/checkstyle \
&& echo 'java -jar /tool/checkstyle.jar $@' >> /usr/bin/checkstyle \
&& chmod +x /usr/bin/checkstyle \
# Cleanup
&& apk del curl \
&& rm -rf /var/cache/apk/*

WORKDIR /src

0 comments on commit 7ff09d3

Please sign in to comment.