dcycle / docker-drupal

Drupal + Drush in an up-to-date Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircleCI

A Drupal+Drush Docker image, updated Wednesdays

This image was created for two reasons:

How security updates are managed

We have a Jenkins server which attempts to rebuild the image wednesdays around 4pm EDT after the security updates are released. Users of this image are also encouraged to rebuild daily.

The jenkins schedule is:

TZ=America/Montreal
H 16 * * 3

16 is the time, 3 is the day (Wednesday).

See this image on the Docker Hub.

/var/www/html vs /opt/drupal

This project is based on the "official" Drupal Docker image, which, in this pull request, changed the location of Drupal from /var/www/html to /opt/drupal (with a symlink from /var/www/html).

This causes various issues with downstream projects which depend on the dcycle/drupal image; it has therefore been decided that for the dcycle/drupal, Drupal would remain in /var/www/html, rather than be in /opt/drupal.

Thus, in ./Dockerfile-10-php-alpine, code was added to completely remove /opt/drupal and /var/www/html, and reinstall with our own composer.json files at ./docker-resources/*/composer.json.

Docker tags

Recommended Docker tags

  • 10-fpm-alpine.YYYY-MM-DD-HH-MM-SS-UTC: A Drupal 9 with PHP 8 and Composer 2 image frozen in time.
  • 10-fpm-alpine: The latest Drupal 9 image with PHP 8 and Composer 2, rebuilt Wednesdays.
  • 7php8.YYYY-MM-DD-HH-MM-SS-UTC: A Drupal 7 image frozen in time.
  • 7php8: The latest Drupal 7 image, rebuilt Wednesdays.

Other tags, including PHP 8, and Drupal 9 on PHP 7, are deprecated.

Usage example

See Dcycle Drupal Starterkit.

About

Drupal + Drush in an up-to-date Docker image


Languages

Language:Shell 98.5%Language:PHP 1.5%