Changeset 59279
- Timestamp:
- 10/23/2024 12:05:55 AM (3 months ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docker-compose.yml
r59278 r59279 80 80 81 81 # For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0. 82 command: --default-authentication-plugin=mysql_native_password82 command: ${LOCAL_DB_AUTH_OPTION-} 83 83 84 84 healthcheck: -
trunk/tools/local-env/scripts/docker.js
r59278 r59279 2 2 const dotenvExpand = require( 'dotenv-expand' ); 3 3 const { execSync } = require( 'child_process' ); 4 const local_env_utils = require( './utils' ); 4 5 5 6 dotenvExpand.expand( dotenv.config() ); 6 7 8 const composeFiles = local_env_utils.get_compose_files(); 9 7 10 // Execute any docker compose command passed to this script. 8 execSync( 'docker compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );11 execSync( 'docker compose ' + composeFiles + ' ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } ); -
trunk/tools/local-env/scripts/install.js
r59278 r59279 4 4 const { execSync } = require( 'child_process' ); 5 5 const { renameSync, readFileSync, writeFileSync } = require( 'fs' ); 6 const { utils } = require( './utils.js' ); 7 const local_env_utils = require( './utils' ); 6 8 7 9 dotenvExpand.expand( dotenv.config() ); 10 11 // Determine if a non-default database authentication plugin needs to be used. 12 local_env_utils.determine_auth_option(); 8 13 9 14 // Create wp-config.php. … … 49 54 */ 50 55 function wp_cli( cmd ) { 51 execSync( `docker compose run --rm cli ${cmd}`, { stdio: 'inherit' } ); 56 const composeFiles = local_env_utils.get_compose_files(); 57 58 execSync( `docker compose ${composeFiles} run --rm cli ${cmd}`, { stdio: 'inherit' } ); 52 59 } 53 60 … … 57 64 function install_wp_importer() { 58 65 const testPluginDirectory = 'tests/phpunit/data/plugins/wordpress-importer'; 66 const composeFiles = local_env_utils.get_compose_files(); 59 67 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' } );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' } ); 62 70 } -
trunk/tools/local-env/scripts/start.js
r59278 r59279 2 2 const dotenvExpand = require( 'dotenv-expand' ); 3 3 const { execSync } = require( 'child_process' ); 4 const local_env_utils = require( './utils' ); 4 5 const { constants, copyFile } = require( 'node:fs' ); 5 6 … … 10 11 11 12 dotenvExpand.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(); 12 18 13 19 // Check if the Docker service is running. … … 26 32 ? 'wordpress-develop memcached' 27 33 : 'wordpress-develop'; 28 execSync( `docker compose up -d ${containers}`, { stdio: 'inherit' } );34 execSync( `docker compose ${composeFiles} up -d ${containers}`, { stdio: 'inherit' } ); 29 35 30 36 // 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.