PHP / CakePHP

Generating a CakePHP application

$ azk shell --image azukiapp/php-fpm --shell /bin/bash
# composer create-project cakephp/app my-cake-php --prefer-dist
# exit

Creating the Azkfile.js

$ cd my-cake-php
$ azk init

Running application

To start the development environment

$ azk start -o && azk logs --follow

Examples

PHP with CakePHP

systems({
  'my-cakephp-app': {
    depends: [],
    image: {"docker": "azukiapp/php-fpm:5.6"},
    provision: [
      "composer install"
    ],
    workdir: "/azk/#{manifest.dir}",
    shell: "/bin/bash",
    wait: 20,
    mounts: {
      '/azk/#{manifest.dir}': sync("."),
      '/azk/#{manifest.dir}/vendor': persistent("./vendor"),
      '/azk/#{manifest.dir}/composer.phar': persistent("./composer.phar"),
      '/azk/#{manifest.dir}/composer.lock': path("./composer.lock"),
      '/azk/#{manifest.dir}/node_modules': persistent("./node_modules"),
    },
    scalable: {"default": 1},
    http: {
      domains: [ "#{system.name}.#{azk.default_domain}" ]
    },
    ports: {
      http: "80/tcp",
    },
    envs: {
      APP_DIR: "/azk/#{manifest.dir}",
    },
  },
});