Sign inSign up

zaporylie/drupal

By zaporylie

Updated almost 11 years ago

Image
4

3.2K

zaporylie/drupal repository overview

Drupal Docker Image

Build StatusPullsStars

Simple docker image to build containers for your Drupal projects. If you are working on Drupal code you might be more interested in zaporylie/drupal-dev image which is just an extension for this image anyway.

What you get?

Some features

  • autodiscovery mode (by default) will check if we have existing Drupal site in database OR if settings file exists but there is no database OR if it is brand new container with nothing in it
  • numbers of environmental variables which can be used to customize container (ex. select Drupal version)
  • mysql on demand (turned off by default but if you won't link separate mysql container it will be started automatically for you)
  • sshd password will be autogenerated on container start. If you'd like you can set custom password instead - just use SSH_PASSWORD enviromental variable.

Quickstart

With separate mysql container (recommended):

docker run \
  --name <drupal> \
  --link <mysql_container_name_or_id>:mysql \
  -e MYSQL_HOST_NAME=mysql \
  -d \
  -P \
  zaporylie/drupal

Without separate mysql container:

docker run \
  --name <drupal> \
  -d \
  -P \
  zaporylie/drupal

Configuration

ENNVIRONMENTAL VARIABLEDEFAULT VALUECOMMENTS
DRUPAL_DBdrupal
DRUPAL_DB_USERdrupal
DRUPAL_DB_PASSWORDdrupal
DRUPAL_PROFILEminimal
DRUPAL_SUBDIRdefault
DRUPAL_MAJOR_VERSION7
DRUPAL_DOWNLOAD_METHODdrush
DRUPAL_GIT_BRANCH7.xOnly if DRUPAL_DOWNLOAD_METHOD is git
DRUPAL_GIT_DEPTH1Only if DRUPAL_DOWNLOAD_METHOD is git
METHODautoSynchronization method (use drush sql-sync or file)
MYSQL_HOST_NAME(optional)skip this if you're not linking mysql container
DRUPAL_TEST0
BUILD_TEST0

Dependencies (no longer required):

Mysql

If you don't want to lose your data build data-only container first:

docker run \
  --name mysql_data \
  --entrypoint /bin/echo \
  mysql:5.5 \
  MYSQL data-only container

... then container with running mysql process ...

docker run \
  --name mysql_service\
  -e MYSQL_ROOT_PASSWORD=<mysecretpassword> \
  --volumes-from mysql_data \
  -d mysql:5.5

Credits

This project was created by Jakub Piasecki [email protected]

nodesource/node

Tag summary

Content type

Image

Digest

sha256:f2ba06651

Size

166.5 MB

Last updated

almost 11 years ago

docker pull zaporylie/drupal