diff options
author | Jonathan Desrosiers <desrosj@git.wordpress.org> | 2020-12-18 15:27:33 +0000 |
---|---|---|
committer | Jonathan Desrosiers <desrosj@git.wordpress.org> | 2020-12-18 15:27:33 +0000 |
commit | 3109b32fc98619305d36cfc6ec078e189678005b (patch) | |
tree | 426ba1e4b6a1c70e48cc9e22f97e3e455a059f5c /docker-compose.yml | |
parent | 3723941a9c2c80cf98cb51d5b714a063a8dbe77b (diff) | |
download | wordpress-3109b32fc98619305d36cfc6ec078e189678005b.tar.gz wordpress-3109b32fc98619305d36cfc6ec078e189678005b.zip |
Build/Test Tools: Support the use of MariaDB in the local Docker environment.
In addition to MySQL, WordPress also supports MariaDB for databases. This makes changes to the local Docker environment to allow MariaDB to be used instead, if desired.
The `LOCAL_DB_TYPE` environment variable will now be used to determine which type of database container to use. This will default to `mysql`, but will also accept `mariadb`.
The `LOCAL_MYSQL` environment variable (which previously held the version of MySQL to use) has been replaced with the new, more generic `LOCAL_DB_VERSION` environment variable.
This change will make it possible to perform automated testing on a wider array of supported database types and versions.
Props davidbaumwald.
Fixes #51744. See #30462.
git-svn-id: https://develop.svn.wordpress.org/trunk@49836 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 56c994337f..9f598714d8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,7 +53,7 @@ services: # The MySQL container. ## mysql: - image: mysql:${LOCAL_MYSQL-latest} + image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-latest} networks: - wpdevnet |