File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,25 @@ public function __get( $key ) {
5151 */
5252 private function init_ee () {
5353
54+ // Minimum requirement checks.
55+ $ docker_running = 'docker ps > /dev/null ' ;
56+ if ( ! EE ::exec ( $ docker_running ) ) {
57+ EE ::error ( 'docker not installed or not running. ' );
58+ }
59+
60+ $ docker_compose_installed = 'command -v docker-compose > /dev/null ' ;
61+ if ( ! EE ::exec ( $ docker_compose_installed ) ) {
62+ EE ::error ( 'EasyEngine requires docker-compose. ' );
63+ }
64+
65+ if ( version_compare ( PHP_VERSION , '7.2.0 ' ) < 0 ) {
66+ EE ::error ( 'EasyEngine requires minimum PHP 7.2.0 to run. ' );
67+ }
68+
5469 $ this ->ensure_present_in_config ( 'locale ' , 'en_US ' );
5570 $ this ->ensure_present_in_config ( 'ee_installer_version ' , 'stable ' );
5671
57- define ( 'DB ' , EE_ROOT_DIR . '/db/ee.sqlite ' );
72+ define ( 'DB ' , EE_ROOT_DIR . '/db/ee.sqlite ' );
5873 define ( 'LOCALHOST_IP ' , '127.0.0.1 ' );
5974
6075 $ db_dir = dirname ( DB );
You can’t perform that action at this time.
0 commit comments