[Feature] Expand docker-compose.yml file to include composer and phpcs functionality
Problem
See #199, this builds from there.
MVP
At a minimum:
- setup MySQL server (MariaDB preferably)
- setup a web server (Apache), running latest WordPress files
- make Web and DB server connect with each other appropriately
- mount the db locally, so it persists
- mount the WordPress install locally, so it persists
- mount the wp-plugin-creativecommons plugin directory into the web server at wp-content/plugins/, so it can be user activated
- include appropriate .gitignore additions so local mount points are not tracked ( ./dev/db & ./dev/wordpress)
update documentation to reflect new docker compose one-liner referencing docker-compose.yml file
The baseline Docker Image would benefit from having Composer bundled in via the official Composer docker image, so that at a minimum the official WordPress Coding Standards rules for phpcs can be installed easily and configured for dev use. At current, the baseline image leaves this up to the individual dev to install and configure, bundling it here makes setup smoother.
Description
Once #199 is implemented, then as an expansion, Composer could be added in the docker-compose.yml file to allow more well defined testing. Then, the official WordPress Coding Standards rules for phpcs can be installed.
This would then allow proper WordPress coding standards to be applied, and tested.
MVP
- [ ] setup
composerimage indocker-compose.ymlfile - [ ] link to
web server - [ ] setup and configure official
phpcsfor WordPress Coding Standards viacomposer(https://github.com/WordPress/WordPress-Coding-Standards) - [ ] update any relevant documentation for use of
composerin this context - [ ] update any relevant documentation for use of
phpcsin this context
Alternatives
There are currently no known official alternatives to the WordPress Coding Standards rules for phpcs that I am aware of.
Additional context
- Composer image will be pulled via the official image on Docker Hub
- phpcs WP Coding Standards will pull from here: https://github.com/WordPress/WordPress-Coding-Standards
Implementation
- [x] I would be interested in implementing this feature.
I would like to work on this issue can you assign it to me
@AK4266 sure! ❤️