Skip to content

Commit

Permalink
Build/Test Tools: Change 5.7 default values of LOCAL_PHP/`LOCAL_DB_…
Browse files Browse the repository at this point in the history
…VERSION`.

This changes the default values for `LOCAL_PHP` and `LOCAL_DB_VERSION` in the 5.7 branch from `latest` to `8.0-fpm` (with beta support) and `5.7`, respectively, to properly reflect the highest versions of PHP and MySQL that this branch will support.

See #61533.

git-svn-id: https://develop.svn.wordpress.org/branches/5.7@58666 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
desrosj committed Jul 3, 2024
1 parent 7e6b320 commit afd9613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LOCAL_PORT=8889
LOCAL_DIR=src

# The PHP version to use. Valid options are 'latest', and '{version}-fpm'.
LOCAL_PHP=latest
LOCAL_PHP=8.0-fpm

##
# The PHPUnit version to use when running tests.
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
# The PHP container.
##
php:
image: wordpressdevelop/php:${LOCAL_PHP-latest}
image: wordpressdevelop/php:${LOCAL_PHP-8.0-fpm}

networks:
- wpdevnet
Expand All @@ -53,7 +53,7 @@ services:
# The MySQL container.
##
mysql:
image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest}
image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-5.7}
platform: linux/amd64

networks:
Expand All @@ -76,7 +76,7 @@ services:
# The WP CLI container.
##
cli:
image: wordpressdevelop/cli:${LOCAL_PHP-latest}
image: wordpressdevelop/cli:${LOCAL_PHP-8.0-fpm}

networks:
- wpdevnet
Expand All @@ -97,7 +97,7 @@ services:
# The PHPUnit container.
##
phpunit:
image: wordpressdevelop/phpunit:${LOCAL_PHPUNIT-latest}
image: wordpressdevelop/phpunit:${LOCAL_PHPUNIT-8.0-fpm}

networks:
- wpdevnet
Expand Down

0 comments on commit afd9613

Please sign in to comment.