Sign inSign up

aleksijohansson/drupal-build

By aleksijohansson

•Updated about 11 years ago

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

Image
0

1.3K

aleksijohansson/drupal-build repository overview

⁠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:
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
  • 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

Tag summary

Content type

Image

Digest

sha256:765600cfa…

Size

207.5 MB

Last updated

almost 11 years ago

docker pull aleksijohansson/drupal-build