Skip to content
Set a local Drupal 8 environment to develop and test core patches.
Shell PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker-resources/drupal
scripts
.gitignore
Dockerfile
README.md
docker-compose.yml

README.md

Drupal 8 core dev helper

This project is meant to help you set a local Drupal 8 environment to help develop and test core patches.

Usage

Install and launch Docker, then run:

git clone https://github.com/dcycle/drupal8_core_dev_helper.git && \
  cd drupal8_core_dev_helper && \
  ./scripts/deploy.sh`

The above will give you a login link to a fully-functional local Drupal environment, which you can open in a browser.

Your Drupal code now available at ./drupal8_core_dev_helper/drupal.

More details

See the blog post Fast-track local Drupal 8 core patch development and testing, April 7, 2018, Dcycle Blog.

Useful commands

  • docker-compose down powers down your Docker containers.
  • ./scripts/destroy.sh powers down and destroys your Docker containers, and deletes your local copy of Drupal at /path/to/drupal8_core_dev_helper/drupal.
  • ./scripts/deploy.sh powers up your Docker containers and installs Drupal if necessary.
  • ./scripts/uli.sh generates a one-time login link to your Drupal environment.
  • docker-compose exec drupal /bin/bash -c 'drush ...' calls drush on the Drupal container.
You can’t perform that action at this time.