Docker container to install and run phpcs
- Install the rvannauker/phpcs container:
docker pull rvannauker/phpcs
- Run phpcs through the phpcs container:
sudo docker run --rm --volume $(pwd):/workspace --name="phpcs" "rvannauker/phpcs" --colors --standard="PSR2" -v {destination}
To run, test and develop the PHP_CodeSniffer Dockerfile itself, you must use the source directly:
- Download the source:
git clone https://github.com/RichVRed/docker-phpcs.git
- Build the container:
sudo docker build --force-rm --tag "rvannauker/phpcs" --file phpcs.dockerfile .
- Test running the container:
$ docker run rvannauker/phpcs --help