Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Docker-compose for easy development environment? #154

@brylie

Description

@brylie

Problem

There are several steps required to begin developing this extension, such as

  1. set up WordPress, a web server, and database locally
  2. configure phpcs for WordPress coding standards
  3. configure code standards in IDE

Each of these steps can prove to be problematic.

Description

Adding a Docker compose file can help make some of the above steps easier. For example, a basic Docker-compose file can create a WordPress/Apache/MariaDB development environment in one command. The WordPress Docker container can automatically install the WordPress coding standards plugin via composer.

Developers would want a choice of IDE. However, it is possible to configure VS Code to develop within a Docker container. For extra simplicity, we can serve a VS Code Code Server instance from within a Docker container pre-configured with PHP-related extensions.

This issue proposes to create a docker-compose.yml and possibly an extended WordPress Dockerfile within the dev folder.

Alternatives

I've tried XAMPP locally. It brought back memories and is a good tool. However, it was somewhat quirky and posed issues with permissions, configuration, and debugging.

Implementation

  • I would be interested in implementing this feature.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions