wp-plugin-creativecommons icon indicating copy to clipboard operation
wp-plugin-creativecommons copied to clipboard

[Feature] Expand docker-compose.yml file to include composer and phpcs functionality

Open possumbilities opened this issue 3 years ago • 2 comments

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 composer image in docker-compose.yml file
  • [ ] link to web server
  • [ ] setup and configure official phpcs for WordPress Coding Standards via composer (https://github.com/WordPress/WordPress-Coding-Standards)
  • [ ] update any relevant documentation for use of composer in this context
  • [ ] update any relevant documentation for use of phpcs in 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.

possumbilities avatar Jul 19 '22 18:07 possumbilities

I would like to work on this issue can you assign it to me

AK4266 avatar Mar 17 '23 04:03 AK4266

@AK4266 sure! ❤️

possumbilities avatar Mar 17 '23 19:03 possumbilities