File tree 1 file changed +16
-1
lines changed
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 ) {
51
51
*/
52
52
private function init_ee () {
53
53
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
+
54
69
$ this ->ensure_present_in_config ( 'locale ' , 'en_US ' );
55
70
$ this ->ensure_present_in_config ( 'ee_installer_version ' , 'stable ' );
56
71
57
- define ( 'DB ' , EE_ROOT_DIR . '/db/ee.sqlite ' );
72
+ define ( 'DB ' , EE_ROOT_DIR . '/db/ee.sqlite ' );
58
73
define ( 'LOCALHOST_IP ' , '127.0.0.1 ' );
59
74
60
75
$ db_dir = dirname ( DB );
You can’t perform that action at this time.
0 commit comments