Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Automated script to build Drupal image for Docker

This is extendable docker image for Drupal. Build your own:

# ---------------------
# @file: Dockerfile
# ---------------------
FROM andytruong/drupal:7.34

COPY ./quizz.make /var/www/quizz.make
RUN  rm -rf /var/www/html && drush make /var/www/quizz.make /var/www/html
RUN  ls -lah /var/www/html/sites/all/modules/contrib
COPY ./local.settings.php /var/www/html/sites/default/local.settings.php

# ---------------------
# @file: quizz.make
# ---------------------
includes[base] = drupal.make
projects[quizz][subdir] = contrib
projects[quizz_cloze][subdir] = contrib
projects[quizz_matching][subdir] = contrib
projects[quizz_multichoice][subdir] = contrib
projects[quizz_pool][subdir] = contrib
projects[quizz_scale][subdir] = contrib
projects[quizz_text][subdir] = contrib

# ---------------------
# @file: local.settings.php
# ---------------------
global $databases;
$databases['default']['default'] = array(
  'driver' => $_SERVER['db_type'],
  'database' => $_SERVER['db_name'],
  'username' => $_SERVER['db_user'],
  'password' => $_SERVER['db_passwd'],
  'host' => $_SERVER['db_host'],
  'port' => $_SERVER['db_port'],
);

Base make files

You can browse for more base Drush make files at https://github.com/atdrupal/make_files.

Docker Pull Command
Owner
andytruong
Source Repository