Make WordPress Core

Changeset 59278 for trunk


Ignore:
Timestamp:
10/22/2024 11:44:25 PM (5 months ago)
Author:
desrosj
Message:

Build/Test Tools: Revert [59277] to add a proper commit message.

Unprops desrosj.

Location:
trunk
Files:
3 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/docker-compose.yml

    r59277 r59278  
    8080
    8181    # For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0.
    82     command: ${LOCAL_DB_AUTH_OPTION-}
     82    command: --default-authentication-plugin=mysql_native_password
    8383
    8484    healthcheck:
  • trunk/tools/local-env/scripts/docker.js

    r59277 r59278  
    22const dotenvExpand = require( 'dotenv-expand' );
    33const { execSync } = require( 'child_process' );
    4 const local_env_utils = require( './utils' );
    54
    65dotenvExpand.expand( dotenv.config() );
    76
    8 const composeFiles = local_env_utils.get_compose_files();
    9 
    107// Execute any docker compose command passed to this script.
    11 execSync( 'docker compose ' + composeFiles + ' ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );
     8execSync( 'docker compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );
  • trunk/tools/local-env/scripts/install.js

    r59277 r59278  
    44const { execSync } = require( 'child_process' );
    55const { renameSync, readFileSync, writeFileSync } = require( 'fs' );
    6 const { utils } = require( './utils.js' );
    7 const local_env_utils = require( './utils' );
    86
    97dotenvExpand.expand( dotenv.config() );
    10 
    11 // Determine if a non-default database authentication plugin needs to be used.
    12 local_env_utils.determine_auth_option();
    138
    149// Create wp-config.php.
     
    5449 */
    5550function wp_cli( cmd ) {
    56     const composeFiles = local_env_utils.get_compose_files();
    57 
    58     execSync( `docker compose ${composeFiles} run --rm cli ${cmd}`, { stdio: 'inherit' } );
     51    execSync( `docker compose run --rm cli ${cmd}`, { stdio: 'inherit' } );
    5952}
    6053
     
    6457function install_wp_importer() {
    6558    const testPluginDirectory = 'tests/phpunit/data/plugins/wordpress-importer';
    66     const composeFiles = local_env_utils.get_compose_files();
    6759
    68     execSync( `docker compose ${composeFiles} exec -T php rm -rf ${testPluginDirectory}`, { stdio: 'inherit' } );
    69     execSync( `docker compose ${composeFiles} exec -T php git clone https://github.com/WordPress/wordpress-importer.git ${testPluginDirectory} --depth=1`, { stdio: 'inherit' } );
     60    execSync( `docker compose exec -T php rm -rf ${testPluginDirectory}`, { stdio: 'inherit' } );
     61    execSync( `docker compose exec -T php git clone https://github.com/WordPress/wordpress-importer.git ${testPluginDirectory} --depth=1`, { stdio: 'inherit' } );
    7062}
  • trunk/tools/local-env/scripts/start.js

    r59277 r59278  
    22const dotenvExpand = require( 'dotenv-expand' );
    33const { execSync } = require( 'child_process' );
    4 const local_env_utils = require( './utils' );
    54const { constants, copyFile } = require( 'node:fs' );
    65
     
    1110
    1211dotenvExpand.expand( dotenv.config() );
    13 
    14 const composeFiles = local_env_utils.get_compose_files();
    15 
    16 // Determine if a non-default database authentication plugin needs to be used.
    17 local_env_utils.determine_auth_option();
    1812
    1913// Check if the Docker service is running.
     
    3226    ? 'wordpress-develop memcached'
    3327    : 'wordpress-develop';
    34 execSync( `docker compose ${composeFiles} up -d ${containers}`, { stdio: 'inherit' } );
     28execSync( `docker compose up -d ${containers}`, { stdio: 'inherit' } );
    3529
    3630// If Docker Toolbox is being used, we need to manually forward LOCAL_PORT to the Docker VM.
Note: See TracChangeset for help on using the changeset viewer.