Drupal check - this is a docker container that helps you quickly check the code for compliance with Drupal standards
Build from Dockerfile
:
$ docker build -t neomen/drucheck:latest .
Verify build:
$ sudo docker run --rm -it neomen/drucheck:latest --version
Install the neomen/drucheck:latest
container (optional - this step is performed by Docker automatically when running the container):
$ docker pull neomen/drucheck:latest
Define an bash alias that runs this container whenever drucheck
is invoked on the command line:
$ echo "alias drucheck='docker run --rm -it -v \$(pwd):/downloads/drupal/web/modules/custom/workspace neomen/drucheck:latest'" >> ~/.bashrc
$ source ~/.bashrc
Run drucheck as always:
$ drucheck --version
In the folder with the Drupal module, run:
$ drucheck
or directly through docker:
$ docker run --rm -it -v $(pwd):/downloads/drupal/web/modules/custom/workspace neomen/drucheck:latest