/drupal_stacker

a fabric-based python-script to setup a drupal-stack

Primary LanguagePython

drupal_stacker

drupal_stacker is a small python-script to setup a drupal stack from the beginning using Fabric

In its current form it will create a folder, add a _tools-folder and add the following github repositories as submodules:

  • fabalicious a fagric-based deployment-tool with support for docker, drupal and drush
  • drupal-docker a Dockerfile suitable for drupal-installations and some helper-scripts.
  • baseBox provides a vagrant based virtual machine running a docker-instance

But this is completely configurable to your needs.

Installation

drupal_stacker needs fabric:

on Mac OS X:

brew install python
pip install fabric
pip install pyyaml

on Debian/Ubuntu:

apt-get install python-pip
pip install fabric
pip install pyyaml

Copy the folder to a suitable folder on your hard-drive

Usage

drupal_stacker provides currently only two tasks

init

fab -f /path/to/drupal_stacker.py init:<project-path>

This will create the folder , init a git-repository, add the submodules, add some symlinks, create a fabalicious-config-file and run a drush-makefile for a standard drupal-installation

As an alternative you can use a separate configuration-file:

fab -f /path/to/drupal_stacker.py init:root_dir=<project-path>,config_file=<path-to-config-file.yaml>

upgradeSubmodules

fab -f /path/to/drupal_stacker.py upgradeSubmodules:<project-path>

This will add the submodules, add some symlinks, and commit it to git

As an alternative you can use a separate configuration-file:

fab -f /path/to/drupal_stacker.py upgradeSubmodules:root_dir=<project-path>,config_file=<path-to-config-file.yaml>