Make WordPress Core

Changeset 59283


Ignore:
Timestamp:
10/23/2024 02:56:55 PM (7 weeks ago)
Author:
desrosj
Message:

Build/Test Tools: Support Docker compose override files.

This updates the logic introduced in [59279] to account for the presence of docker-compose.override.yml files.

Props xknown, davidbaumwald.
See #61218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/local-env/scripts/utils.js

    r59279 r59283  
     1const { existsSync } = require( 'node:fs' );
     2
    13const local_env_utils = {
    24
     
    1214    get_compose_files: function() {
    1315        var composeFiles = '-f docker-compose.yml';
     16
     17        if ( existsSync( 'docker-compose.override.yml' ) ) {
     18            composeFiles = composeFiles + ' -f docker-compose.override.yml';
     19        }
    1420
    1521        if ( process.env.LOCAL_DB_TYPE !== 'mysql' ) {
Note: See TracChangeset for help on using the changeset viewer.