From 0bb851ec95fdbc7e8dbc0abb0ee137cbf81f077b Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 20 Jan 2025 22:06:53 +0000 Subject: [PATCH] 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 --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ec462c8a24c5c..7465f022e1299 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,6 +45,7 @@ services: - PHP_FPM_GID=${PHP_FPM_GID-1000} - GITHUB_REF=${GITHUB_REF-false} - GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME-false} + - HOST_PATH=${PWD-}/${LOCAL_DIR-src} volumes: - ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini @@ -101,6 +102,7 @@ services: - LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false} - PHP_FPM_UID=${PHP_FPM_UID-1000} - PHP_FPM_GID=${PHP_FPM_GID-1000} + - HOST_PATH=${PWD-}/${LOCAL_DIR-src} volumes: - ./:/var/www