Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zaporylie/docker-drupal-dev


https://github.com/zaporylie/docker-drupal-dev

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

[Deprecated] Drupal Docker Image for developers
===============================

**Thanks for your interest but this project is now deprecated. Visit http://github.com/drupal-docker if you're looking for Drupal-Docker integration. Following organization is a direct successor of all repos which are related to Drupal&Docker and created by me. Thanks and good luck!**

[![Build Status](https://travis-ci.org/zaporylie/docker-drupal-dev.svg?branch=master)](https://travis-ci.org/zaporylie/docker-drupal-dev)

This image was built on the top of [zaporylie/drupal](http://registry.hub.docker.com/u/zaporylie/drupal/) image, but adds some useful tools for developers, like CodeSniffer, xDebug or Blackfire.

## Documentation

If you are looking for general documentation, please check [zaporylie/docker-drupal](https://github.com/zaporylie/docker-drupal)

## Additional configuration

| ENNVIRONMENTAL VARIABLE | DEFAULT VALUE | COMMENTS |
|:-:|:-:|:-:|
| DRUPAL_TEST_CS (not implemented) | 0 | |
| DRUPAL_TEST_CS_PATH (not implemented) | /app/drupal | |
| DEV_MODULE | XDEBUG | Supported: XDEBUG, BLACKFIRE |

## Profiling with blackfire or using xdebug

You will get xdebug by default, but if you prefer to use Blackfire for profiling instead, please use DEV_MODULE environmental variable with "BLACKFIRE" value.
Just remember to run [blackfire/blackfire](https://registry.hub.docker.com/u/blackfire/blackfire/) container before and link it to your zaporylie/drupal-dev container like in the example below:

````
docker run -dP --link blackfire:blackfire -e BLACKFIRE_SERVER_ID=put-blackfire-server-id-here -e BLACKFIRE_SERVER_TOKEN=put-blackfire-server-token-here -e DEV_MODULE=BLACKFIRE zaporylie/drupal-dev
````

## What about CodeSniffer?

The easiest way is to enter container (with `docker exec -ti /bin/bash`), and:

````
drupalcs /path/to/file/or/module/or/whatever
````

Available methods:
* drupalcs - standard checking against Drupal coding standards
* drupalcs-bp - checking against Drupal best practices
* drupalcs-fix - automated way to fix issues with coding standards