Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaporylie/docker-drupal-dev
https://github.com/zaporylie/docker-drupal-dev
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zaporylie/docker-drupal-dev
- Owner: zaporylie
- Created: 2015-03-09T14:29:26.000Z (almost 10 years ago)
- Default Branch: 1.x
- Last Pushed: 2016-08-29T06:25:15.000Z (over 8 years ago)
- Last Synced: 2024-12-14T03:06:04.519Z (26 days ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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