This package is abandoned and no longer maintained. The author suggests using the drudock/cli package instead.

DruDock Cli

1.4-alpha1.0.12 2018-09-12 07:12 UTC

README

DruDock Logo

DruDock is Docker based development, staging and production environment for Drupal websites or PHP apps.

Latest Stable Version License composer.lock

Build Status Gitter

DruDock-Cli - BETA

CLI utility for DruDock

Install and setup Docker

Minimum Requirements :

  • Host OS must have PHP ^5.6

Questions?

Ping me on Twitter

DOCS - @TODO

Read more - http://drudockcli.readthedocs.io/en/latest/

Install via .phar

  • Install DruDock globally.

curl -O http://d1gem705zq3obi.cloudfront.net/drudock.phar && \
mv drudock.phar /usr/local/bin/drudock && \
chmod +x /usr/local/bin/drudock && \
drudock

Status

Initial Commands structure

  Available commands:
    help                   Displays help for a command
    list                   Lists commands
   app
    app:bash               [ab] Bash into container
    app:build              [ab] Fetch and build App containers and resources.
    app:destroy            [ad] Disable and delete APP and containers
    app:exec               [ae] Execute bespoke commands at :container
    app:init               [ai] Fetch and build DruDock containers
    app:init:build         [aib] Initialize environment and run build.
    app:init:containers    [aic] Create APP containers
    app:open               [ao] Open APP in default browser.
    app:restart            [ar] Restart current APP containers
    app:ssh                [assh] SSH into Apps PHP container.
    app:start              [start] Start current APP containers
    app:status             [as] Get current status of all containers
    app:stop               [stop] Stop current APP containers
    app:update:config      [aucg] Update APP config
    app:update:containers  [auct] Update APP containers
    app:update:services    [aus] Update APP services
   behat
    behat:cmd              Run behat commands
    behat:monitor          Launch behat VNC viewer
    behat:status           Runs example command against running APP and current config
   drush
    drush:cc               [dcc] Run drush cache clear
    drush:cex              [dcex] Run drush config-export
    drush:cim              [dcim] Run drush config-import
    drush:dis              [dd] Disable/Uninstall Drupal module
    drush:en               [de] Enable Drupal module
    drush:init:config      [dicg] Run drush config init
    drush:rr               [drr] Run drush registry rebuild
    drush:uli              [duli] Run Drush ULI
    drush:updb             [dudb] Run Drush updb
   mysql
    mysql:export           Export .sql files
    mysql:import           Import .sql files
    mysql:log              Monitor mysql activity
   nginx
    nginx:flush            Flush nginx cache
    nginx:log              Monitor nginx activity
    nginx:proxy:start      Start nginx proxy
    nginx:proxy:stop       Stop nginx proxy
    nginx:reload           Reload nginx activity
    nginx:sethost          Add nginx host to DD and host OS
   prod
    prod:update            Rebuild app and deploy latest code into app containers
   redis
    redis:flush            Flush Redis cache
    redis:info             Get Redis running config information
    redis:monitor          Monitor redis activity
    redis:ping             Ping Redis
   self
    self:about             [about] About DruDock
    self:update            [su] Update Drudock version to latest released version.

       

Example Commands

      --------------
      :$ drudock app:init --appname defaultapp --type DEFAULT --dist Development --src New --apphost drudock.localhost --services "PHP,NGINX,MYSQL"
      :$ cd my-great-app && drudock build:init
      --------------

DEV Drupal 8

      --------------
      :$ drudock app:init:build --appname my-app --type D8 --dist Development --src New --apphost drudock.localhost --services "PHP,NGINX,MYSQL"
      :$ cd my-drupal8-site && drudock build:init
      --------------

DEV Drupal 7

      --------------
      :$ drudock app:init:build --appname my-app --type D7 --dist Development --src New --apphost drudock.localhost --services "PHP,NGINX,MYSQL"
      :$ cd my-drupal7-site && drudock build:init
      --------------

Next step :

  • More utility commands and USER feedback For more information see roadmap

Known issues

  1. Its not finished - still in alpha and requires community testing and feedback.