mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 13:59:48 +01:00
Build/Test Tools: Use quiet pulls during local environment installation and WP-CLI commands.
This reduces the noise of the output -- both locally and on CI -- when first pulling containers during local environment installation and the first time the cli container is pulled for WP-CLI commands. See #62280 git-svn-id: https://develop.svn.wordpress.org/trunk@59658 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bc3fdb4648
commit
e8fc0d6ae5
@ -55,7 +55,7 @@ wait_on( { resources: [ `tcp:localhost:${process.env.LOCAL_PORT}`] } )
|
||||
function wp_cli( cmd ) {
|
||||
const composeFiles = local_env_utils.get_compose_files();
|
||||
|
||||
execSync( `docker compose ${composeFiles} run --rm cli ${cmd}`, { stdio: 'inherit' } );
|
||||
execSync( `docker compose ${composeFiles} run --quiet-pull --rm cli ${cmd}`, { stdio: 'inherit' } );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -31,7 +31,7 @@ try {
|
||||
const containers = ( process.env.LOCAL_PHP_MEMCACHED === 'true' )
|
||||
? 'wordpress-develop memcached'
|
||||
: 'wordpress-develop';
|
||||
execSync( `docker compose ${composeFiles} up -d ${containers}`, { stdio: 'inherit' } );
|
||||
execSync( `docker compose ${composeFiles} up --quiet-pull -d ${containers}`, { stdio: 'inherit' } );
|
||||
|
||||
// If Docker Toolbox is being used, we need to manually forward LOCAL_PORT to the Docker VM.
|
||||
if ( process.env.DOCKER_TOOLBOX_INSTALL_PATH ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user