A Docker image for running PMD Source Code Analyzer, including CPD.
Note the image expects 512MB of RAM to be available when running the container as CPD is memory intensive. This can be overridden with the option
-e PMD_JAVA_OPTS='-Xmx1024m'
The image is available on docker hub, you can pull it as follows:
docker pull damianoneill/pmd
Alternatively, after checking out this repository, you can build it locally with the following command:
docker build -t="damianoneill/pmd" .