Skip to content

Boran/webfact

Repository files navigation

The Webfactory (https://github.com/Boran/webfact) provides a UI to interface to the Docker API, allowing operations on containers/images. It aims to streamline dev and operations for Drupal websites.

The Webfactory consists of several components

  • The module: webfact (main logic), webfact_content_types (features/views), webfact_theme (bootstrap UI), webfact-make (build/install), webfactapi (optional remote control) and webfactory (deprecated).
  • For Drupal build automation: The boran/drupal docker image (on docker hub).

You need:

  • Docker server (e.g. Ubuntu 14.04) with docker 1.7 or later
  • A container for the webfactory (e.g. the drupal lamp container https://github.com/Boran/docker-drupal)
  • Docker-php library
  • Drupal + contrib modules and the bootstrap theme*
  • This module and the modules above

Version

This is still in beta and in a state of flux, but used on several servers. No version tagging yet.

Installation

See the readme in the https://github.com/Boran/webfact-make repo.

TODO

The issue queue in this repo with the meta list #2. See also the related https://github.com/Boran/docker-drupal/issues and https://github.com/Boran/webfact-make/issues

Programming notes

See test.php cmdline.php for examples on using the apis and testing individual functions.

  • Tested with Docker API v1.20 and docker 1.8.1
  • The docker-php library (https://github.com/stage1/docker-php)
  • The guzzle http client is used. This makes porting to Drupal 8 easier (if fact the first attempt was on Drupal 8 and then focus was shifted back to D7) - hence the dependancy on the composer_manager module.