Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Docker Logo
Drupal Docker for Local Theme Development.

Features

- Drupal 7/8
- jQuery Update
- Radix Bootstrap, Zurb Foundation, Zen & Omega

Estimated Build Time: 5-15 minutes

This project aims to get website developers up and running quickly with docker and a widely used set of contributed modules, and common base themes.

It is based off of Wouter Admiraal's Drupal Docker: http://wadmiraal.net/, and https://github.com/wadmiraal/docker-drupal

Prerequisites

- Basic knowledge of Dockers and Docker Data Volumes
- Programming and Drupal theme structure knowledge
- Knowledge of Unix/Linux Shells

Requirements

- Docker

Installing the Docker

1. Setup a local theme folder to work from

Create a local theme project directory somewhere on your computer:

mkdir myproject; mkdir myproject/themes
cd myproject

2. Setup the Docker Container

Pull down the docker, and share your themes folder with it:

docker run -d -p 8080:80 -p 8022:22 -v `pwd`/themes/:/var/www/sites/all/themes/custom -t otherdata/drupal-theme-developer:7

* Substitute 7 for 8 to download Drupal 8.x, and Bootstrap 8.x

* If your on a Windows OS your going to need to put the full path to the theme folder instead of `pwd` For example:
docker run -d -p 8080:80 -p 8022:22 -v /c/Users/yourusername/Documents/myproject/themes/:/var/www/sites/all/themes/custom -t otherdata/drupal-theme-developer:7

3. Accessing the Website

- On Mac or Windows type "docker-machine ip default ". This will output the IP of your docker machine. Use this address, and the port you defined above to access the website: http://192.168.99.100:8080

- On Linux you can access the website by http://localhost:8080

4. Connect in with SSH and setup your Subtheme

- Use ssh root@192.168.99.100 -p 8022 or on Linux ssh root@localhost -p 8022 to connect to the docker container. (Password: root)

- If you are using Radix you could run the following inside the container:

cd /var/www/
drush en radix -y; drush vset theme_default radix
drush cc all; drush radix "mysubtheme"
cd /var/www/sites/all/themes/; mv mysubtheme custom/

4. Start Theming

- Now exit the ssh by typing "exit", and your subtheme is available for editing locally.

For detailed instructions on the docker/details please see: https://github.com/wadmiraal/docker-drupal

Project information

  • Created by wrender on , updated