Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Shell_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public function __invoke( $args, $assoc_args ) {
$tty = get_flag_value( $assoc_args, 'skip-tty' ) ? '-T' : '';

if ( $command ) {
EE::exec( "docker-compose exec $tty $user_string $service $shell -c \"$command\"", true, true, [], true );
EE::exec( \EE_DOCKER::docker_compose_with_custom() . " exec $tty $user_string $service $shell -c \"$command\"", true, true, [], true );
} else {
$this->run( "docker-compose exec $user_string $service $shell" );
$this->run( \EE_DOCKER::docker_compose_with_custom() . " exec $user_string $service $shell" );
}
EE\Utils\delem_log( 'ee shell end' );
}
Expand Down Expand Up @@ -146,7 +146,7 @@ private function run( $cmd, $descriptors = null ) {
*/
private function check_shell_available( $shell_container, $site ) {

$launch = EE::launch( 'docker-compose config --services' );
$launch = EE::launch( \EE_DOCKER::docker_compose_with_custom() . ' config --services' );
$services = explode( PHP_EOL, trim( $launch->stdout ) );
if ( in_array( $shell_container, $services, true ) ) {
return;
Expand All @@ -165,7 +165,7 @@ private function check_shell_available( $shell_container, $site ) {
* @return bool Success.
*/
private function check_user_available( $user, $shell_container ) {
$check_command = sprintf( "docker-compose exec --user='%s' %s bash -c 'exit'", $user, $shell_container );
$check_command = sprintf( \EE_DOCKER::docker_compose_with_custom() . " exec --user='%s' %s bash -c 'exit'", $user, $shell_container );

if ( EE::exec( $check_command ) ) {
return true;
Expand Down