Skip to content

Commit

Permalink
Build/Test Tools: Pass the working directory path from the host to th…
Browse files Browse the repository at this point in the history
…e 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
  • Loading branch information
johnbillion committed Jan 20, 2025
1 parent 313e123 commit 0bb851e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0bb851e

Please sign in to comment.