Docker and Docker Compose based environment for Drupal.
For a fully working example of Drude setup take a look at:
Please review system requirements before proceeding with the setup.
-
This is done one time per host and should be performed by everyone.
-
Configure a project to use Drude
This is done one time per project and should be performed by the project TL.
Switch to your <projects>
folder and run:
dsh self-update
dsh update prerequisites
On Mac and Windows only (skip for Linux) also run:
dsh update boot2docker
Finally, you will probably need to re-initialize your environment with:
dsh init
Drude shell helper is a console tool that simplifies day-to-day work with Drude. It provides a set of most commonly used commands and operations for controlling the Boot2docker VM, containers, running drush or other commands inside the cli container. (Note: dsh requires cli container to function properly)
See dsh help
for a complete list.
dsh
detects the environment it's launched in and will automatically start the boot2docker VM and launch containers as necessary.
It runs on Mac/Linux directly. On Windows dsh
runs inside the Babun Shell.
The cli container is meant to serve as a single console to access all necessary command line tools.
You can access cli container's console with dsh
:
dsh bash
Tools available inside the cli container:
- php-cli, composer, drush[6,7,8], drupal console, phpcs, phpcbf
- ruby, bundler
- node, nvm, npm
- imagemagick
- python, git, mc, mysql-client and more
- Drupal settings
- Overriding default PHP/MySQL/etc. settings
- Running multiple projects
- Public access
- DB sandbox mode
- MySQL DB access for external tools
- Debugging with Xdebug and PhpStorm
- Using Behat
- Sending and capturing e-mail
- Enabling Varnish support
- Enabling Apache Solr support
- Using PHP Code Sniffer (phpcs, phpcbf)
- Extending dsh with custom commands
See Troubleshooting section of the docs.
The MIT License (MIT)
Copyright © 2016 Blink Reaction
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.