php / php-src

The PHP Interpreter
https://www.php.net
Other
38.01k stars 7.73k forks source link

Proper development container #16110

Open nielsdos opened 1 day ago

nielsdos commented 1 day ago

Description

It's too difficult to set up a consistent PHP development environment when involving code that needs external servers, like database providers.

I would like an all-in-one Docker container that has all the software necessary to compile PHP with all extensions, and includes database servers that run in the background so I can run tests out of the box. These should be set up with the right credentials and the right environment variables should exist such that the test suite can connect to these databases. All with zero extra configuration, working out of the box.

I often just skip working on database stuff because it's too much of a PITA to set up things. Working on bugfixes is also frustrating because of this. Copying from the GitHub CI configuration is possible but also not a particularly fun experience.

TimWolla commented 1 day ago

15203 is probably related.

nielsdos commented 1 day ago

15203 is probably related.

That would indeed help, but it's lacking database setup thus far; which is the most painful part imo. Certainly a good start to fixing this issue imo.

iluuu1994 commented 1 day ago

@TimWolla FWIW, I explicitly don't want to work in a container. I'd like to have a docker-compose.yml file for all the required services, though.