Skip to content

Commit 0bb851e

Browse files
committed
Build/Test Tools: Pass the working directory path from the host to the dev environment containers.
This allows development tools to read the host path information from the `HOST_PATH` environment variable in order to, for example, map a path in a stack trace from the path in the container to the path on the host machine. Fixes #62833 git-svn-id: https://develop.svn.wordpress.org/trunk@59668 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 313e123 commit 0bb851e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ services:
4545
- PHP_FPM_GID=${PHP_FPM_GID-1000}
4646
- GITHUB_REF=${GITHUB_REF-false}
4747
- GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME-false}
48+
- HOST_PATH=${PWD-}/${LOCAL_DIR-src}
4849

4950
volumes:
5051
- ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini
@@ -101,6 +102,7 @@ services:
101102
- LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
102103
- PHP_FPM_UID=${PHP_FPM_UID-1000}
103104
- PHP_FPM_GID=${PHP_FPM_GID-1000}
105+
- HOST_PATH=${PWD-}/${LOCAL_DIR-src}
104106

105107
volumes:
106108
- ./:/var/www

0 commit comments

Comments
 (0)