[wp-trac] [WordPress Trac] #47767: Simplify and backport the local environment

WordPress Trac noreply at wordpress.org
Tue Jul 30 01:03:23 UTC 2019


#47767: Simplify and backport the local environment
-------------------------------------+-----------------------
 Reporter:  pento                    |       Owner:  pento
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.3
Component:  Build/Test Tools         |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+-----------------------

Comment (by pento):

 Replying to [comment:20 mcsf]:
 > 1. We are replacing Travis's preinstalled version of `docker-compose`
 with a specific version, `1.24.0`. Is there a specific reason, is it about
 recency? Can we document in the file?

 Strictly speaking, we can use 1.22.0 or newer. We need a version that
 supports `docker-compose` file format 3.7, for the `init` directive. This
 allows command line PHP tools (eg, `phpunit`, WP-CLI) to recognised Ctrl+C
 being pressed. ([https://github.com/docker-library/php/issues/505 ref])

 I'll add comments to the `docker-compose` file, explaining what's going
 on.

 > 2. Should we turn the magic version number into a proper constant? I'm
 looking at Travis's [https://docs.travis-ci.com/user/docker/#using-docker-
 compose own documentation on Docker].

 As it's only used in one place, I'm not too concerned about that. We have
 the inline version number with the `wordpress-importer` download in
 `.travis.yml`, too.

 > 3. With the switch to the nginx image, we drop the usage of
 `WORDPRESS_DEBUG` and `WORDPRESS_CONFIG_EXTRA`. What will the new
 recommended methods be to tweak WP runtime constants?

 Yah, I think we should re-add these. They were just a lower priority while
 I was working on getting it up and working.

 Similarly, we also need:
 - A way to add/remove PHP modules. Xdebug is the obvious one that comes to
 mind.
 - Config variables for switching PHP and MySQL versions.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47767#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list