Run SpotBugs against a local Java repository.
Build the image using:
docker build -t spotbugs .
Assuming you're in your application root and have successfully
compiled your application, leaving you a build/
directory:
docker run \
--interactive \
--tty \
--rm \
--volume $(pwd)/build:/spotbugs/build \
spotbugs > report.html
The resulting report.html
can now be viewed.