mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Build/Test Tools: Use list format when defining environment
variables in Docker compose file.
This is the correct formatting detailed in the Docker `compose` documentation examples and helps to avoid ambiguities in the yaml parser when values that may cause warnings. Props pbrearne, ocean90, johnbillion, desrosj. Fixes #53820. git-svn-id: https://develop.svn.wordpress.org/trunk@51673 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ebe147cb13
commit
62e8d8f115
@ -37,10 +37,10 @@ services:
|
||||
- wpdevnet
|
||||
|
||||
environment:
|
||||
LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
|
||||
LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
|
||||
PHP_FPM_UID: ${PHP_FPM_UID-1000}
|
||||
PHP_FPM_GID: ${PHP_FPM_GID-1000}
|
||||
- LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false}
|
||||
- LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
|
||||
- PHP_FPM_UID=${PHP_FPM_UID-1000}
|
||||
- PHP_FPM_GID=${PHP_FPM_GID-1000}
|
||||
|
||||
volumes:
|
||||
- ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini
|
||||
@ -81,10 +81,10 @@ services:
|
||||
- wpdevnet
|
||||
|
||||
environment:
|
||||
LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
|
||||
LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
|
||||
PHP_FPM_UID: ${PHP_FPM_UID-1000}
|
||||
PHP_FPM_GID: ${PHP_FPM_GID-1000}
|
||||
- LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false}
|
||||
- LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
|
||||
- PHP_FPM_UID=${PHP_FPM_UID-1000}
|
||||
- PHP_FPM_GID=${PHP_FPM_GID-1000}
|
||||
|
||||
volumes:
|
||||
- ./:/var/www
|
||||
@ -102,14 +102,14 @@ services:
|
||||
- wpdevnet
|
||||
|
||||
environment:
|
||||
LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
|
||||
LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
|
||||
LOCAL_DIR: ${LOCAL_DIR-src}
|
||||
WP_MULTISITE: ${WP_MULTISITE-false}
|
||||
PHP_FPM_UID: ${PHP_FPM_UID-1000}
|
||||
PHP_FPM_GID: ${PHP_FPM_GID-1000}
|
||||
GITHUB_REF: ${GITHUB_REF-false}
|
||||
GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME-false}
|
||||
- LOCAL_PHP_XDEBUG=${LOCAL_PHP_XDEBUG-false}
|
||||
- LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
|
||||
- PHP_FPM_UID=${PHP_FPM_UID-1000}
|
||||
- PHP_FPM_GID=${PHP_FPM_GID-1000}
|
||||
- LOCAL_DIR=${LOCAL_DIR-src}
|
||||
- WP_MULTISITE=${WP_MULTISITE-false}
|
||||
- GITHUB_REF=${GITHUB_REF-false}
|
||||
- GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME-false}
|
||||
|
||||
volumes:
|
||||
- ./tools/local-env/phpunit-config.ini:/usr/local/etc/php/conf.d/phpunit-config.ini
|
||||
|
Loading…
x
Reference in New Issue
Block a user