2017 © Pedro Peláez
 

library platform-docker

An opinionated platform stack for Drupal with Docker Compose

image

mglaman/platform-docker

An opinionated platform stack for Drupal with Docker Compose

  • Friday, January 5, 2018
  • by mglaman
  • Repository
  • 9 Watchers
  • 46 Stars
  • 134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 19 Forks
  • 17 Open issues
  • 19 Versions
  • 1 % Grown

The README.md

platform-docker Build Status

Platform Docker is a CLI tool for scaffolding docker-compose configuration for PHP projects, currently opinionated at PHP projects. Running platform-docker in a directory will create a multi-container application environment for local development., (*1)

Currently support is focused at Drupal 7 and Drupal 8. However there is rudimentary WordPress support. Generic PHP applications should be easy to implement., (*2)

Requirements

Installation

First, if you do not have Docker then head over to their documentation and see how to install for your machine. For OSX and Windows users, make sure you have Virtual Box installed and docker-machine configured, follow these instructions for the later and ensure you have ran docker-machine create --driver virtualbox default., (*3)

composer global require mglaman/platform-docker

Usage

Use within any directory. Until the app itself can scaffold a folder, it's expecting a folder structure of, (*4)

  • /shared (if not present it will be made)
  • /www (required, this is your build)
  • /repository (not required, but opinionated this is the source of what was built.)
  • /tests (default directory it will look for Behat tests, however checks shared and www)

If you are on Mac OS X, export PLATFORM_DOCKER_MACHINE_NAME with your Docker machine name. The tool will automatically boot the machine or export its environment information as needed. For example, put 12 export PLATFORM_DOCKER_MACHINE_NAME="vmname" in your .bash_profile., (*5)

Features

Redis

There is a redis container available. Currently it can be added by adding the following to .platform-project in the root directory of the project, (*6)

services:
  - redis
`````

#### Solr
An Apache Solr container is available with the default server URI is ````http://solr:8983/solr```` Currently it can be added by adding the following to .platform-project in the root directory of the project

services: - solr `````, (*7)

Flamegraphs

There is a helper command which patches Drupal to log xhprof items, and then turn them into a flamegraph., (*8)

Behat tests

Searches for behat.yml files, laucnches a Selenium (Firefox) container and executes tests., (*9)

Commands

Available commands:
  drush                              Runs a Drush command for environment.
  help                               Displays help for a command
  init                               Setup Platform and Docker Compose files
  link                               Displays link to local environment, with port.
  list                               Lists commands
 docker
  docker:logs                        Tails the logs of a specific service container
  docker:proxy (proxy)               Starts the nginx proxy container
  docker:rebuild                     Rebuild configurations and containers
  docker:restart (reboot)            Restarts the docker containers
  docker:ssh                         Allows for quick SSH into a service container.
  docker:stop (stop)                 Stops the docker containers
  docker:up (start)                  Starts the docker containers
 flamegraph
  flamegraph:create                  Creates a flamegraph from xhprof folder contents.
  flamegraph:setup                   Sets the project up for generating flamegrapghs.
  flamegraph:unpatch                 Unpatches index.php to stop xhprof logging.
 project
  project:behat (behat)              Runs behat test suite for project. Checks ./tests, ./www, ./shared and ./repository by default.
  project:db-sync                    Syncs database from environment to local
 provider
  provider:platformsh (platformsh)   Sets up a Platform.sh project

The Versions

05/01 2018

dev-develop

dev-develop

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

05/01 2018

dev-master

9999999-dev

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

14/06 2017
27/02 2017

dev-mariadb-as-mysql-user

dev-mariadb-as-mysql-user

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

22/02 2017

v1.0.11

1.0.11.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

30/11 2016

v1.x-dev

1.9999999.9999999.9999999-dev

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

30/11 2016

v1.0.10

1.0.10.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

10/08 2016

v1.0.9

1.0.9.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

17/07 2016

v1.0.8

1.0.8.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

02/03 2016

v1.0.7

1.0.7.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

10/02 2016

v1.0.6

1.0.6.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

19/12 2015

dev-travis-with-docker

dev-travis-with-docker

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

06/11 2015

v1.0.5

1.0.5.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

06/10 2015

dev-mysql-to-server-env

dev-mysql-to-server-env

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

05/10 2015

v1.0.4

1.0.4.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

02/10 2015

v1.0.3

1.0.3.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

27/09 2015

v1.0.2

1.0.2.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

22/09 2015

1.0.1

1.0.1.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman

09/09 2015

1.0.0

1.0.0.0

An opinionated platform stack for Drupal with Docker Compose

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Matt Glaman