Public | Automated Build

Last pushed: 2 years ago
Short Description
PHP Docker container for building Drupal with build.sh. Extended from the official PHP Docker image.
Full Description

docker-drupal-build

PHP Docker container for building Drupal with buid.sh. Extended from the official PHP Docker image.

Usage

  • Set the Bro user id in your Dockerfile if you want it to be something else than 1000 for example 500, you can do it like this:

    <pre>
    RUN \
    usermod -u 500 bro \
    && groupmod -g 500 bro \
    && find /home/bro -user 1000 -exec chown -h 500 {} \; \
    && find /home/bro -group 1000 -exec chgrp -h 500 {} \; \
    && usermod -g 500 bro
    </pre>

  • This container is meant to be used together with a PHP-FPM or PHP Apache container and a linked MariaDB container. See example of a working combo here.
  • See the original official PHP image for info about how to extend this container.

Includes

  • PHP with extensions required by Drupal
  • Python and python-yaml required by build.sh
  • Composer and MySQL-client for Drush and Drush

Rundown

  • Add new user called bro to run PHP with.
  • Download and enable the following PHP extensions:
    • uploadprogress
    • memcache
    • gd - also libpng12-dev, libjpeg62-turbo-dev, libfreetype6-dev required from apt
    • mcrypt - also libmcrypt-dev required from apt
    • pdo_mysql, mbstring, zip and opcache
  • Download and install python-yaml
  • Download and install MySQL-client
  • Download and install Composer and Drush
Docker Pull Command
Owner
aleksijohansson

Comments (0)