Make WordPress Core

Changeset 59311


Ignore:
Timestamp:
10/28/2024 06:11:39 PM (5 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.

Reviewed by peterwilsoncc.
Merges 59283] to the 6.7 branch.

Props xknown, davidbaumwald.
See #61218.

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.7

  • branches/6.7/tools/local-env/scripts/utils.js

    r59309 r59311  
     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.