Public Repository

Last pushed: 2 years ago
Short Description
cakephp 3.x with mysql support
Full Description

Run a mysql container:

sudo docker run -v /path/to/mysql/data/:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my_root_password -d --name mysql_5.6 mysql:5.6

Run the cakephp container:

sudo docker run -d -p 80 -v /path/to/my/app:/var/www/html --name my_cakephp_app --link mysql_5.6:db blegrand/cakephp:3.x-apache

paths.php:

/**

  • The absolute path to the "cake" directory, WITHOUT a trailing DS.
    *
  • CakePHP should always be installed with composer, so look there.
    */
    define('CAKE_VENDOR_PATH', getenv('CAKE_PATH') . DS . 'vendor');
    define('CAKE_CORE_INCLUDE_PATH', CAKE_VENDOR_PATH . DS . 'cakephp' . DS . 'cakephp');

bootstrap.php:

// Use composer to load the autoloader.
require CAKE_VENDOR_PATH . DS . 'autoload.php';

Docker Pull Command
Owner
blegrand

Comments (0)