Posts

Showing posts from February, 2016

Create a drupal development environment using docker.

Image
Currently at work i am using docker to streamline and speedup of development and deployment to testing and production, I am using symfony currently and our app is dockerised, i wanted to do the same for drupal based apps. I searched for a official drupal docker repo and i did find this.  https://www.drupal.org/node/2538074 Unfortunately there was very terse explanation but pretty much worked, i found a few hiccups along the way so wanted to share what i did. Pre-requisite: Install docker for your environment. Lots of details are available at  https://docs.docker.com/ explaing docker and installing docker for your environment. The docker repo holds the drupal container at  https://hub.docker.com/_/drupal/ , following the instructions this is how to create the drupal container: In order to use my code base we need to mount the volume with the -v directive as below, we do this in one command: docker run -v /$HOME/work/drupal8:/var/www/html -p 8080:80 --name mydrupal -d drup