Skip to content

Commit 2e7b4cb

Browse files
committed
Update requirements check for compose version warning
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent 8f708b7 commit 2e7b4cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

php/EE/Runner.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ public function check_requirements( $show_error = true ) {
105105
$error[] = 'EasyEngine requires docker-compose.';
106106
}
107107

108+
$docker_compose_version = EE::launch( 'docker-compose version --short' )->stdout;
109+
if ( version_compare( $docker_compose_version, '2.26.0', '<' ) ) {
110+
if ( $show_error ) {
111+
EE::warning( 'EasyEngine requires docker-compose version 2.26.0 or greater.' );
112+
EE::warning( 'You can get the updated version of docker-compose from assets in https://github.com/docker/compose/releases/tag/v2.26.1' );
113+
}
114+
}
115+
108116
if ( version_compare( PHP_VERSION, '7.2.0' ) < 0 ) {
109117
$status = false;
110118
$error[] = 'EasyEngine requires minimum PHP 7.2.0 to run.';

0 commit comments

Comments
 (0)