Posts

Showing posts from March, 2016

Setting up a drupal development env using docker image on mac os.

Image
I have been trying to try various ways in which i can make building and destroying development environments quickly and also make them as close to production as possible, i have tried using vagrant before till i was bitten by the docker bug. There is an official docker image for drupal 8 and drupal 8 on the docker hub, i have tried using them before it wasn't a great wow moment to be honest. Creating a drupal image using official drupal docker image form docker hub. The docker image did not have drush or drupal console so it was a bit disappointing. I searched and came across  https://hub.docker.com/r/iiiepe/nginx-drupal/ The guys have done a lot of work in using docker in their deployment workflow, so i wanted to give this a try. I could have used docker hub to pull the iiiepe image, but i wanted to see what is inside and if i need to make changes i could. I first created a folder in my docker subfolder, I normally keep docker images and my projects separate. I checked

Creating a drupal 8 container from scratch.

I tried the official drupal container according to https://www.drupal.org/node/2538074 Was'nt happy with the result  so i thought build one from scratch. What i want my drupal container to do? 1. Use my codebase which will be outside the container 2. Able to install drupal - correct file system permissions. 3. Clean urls should work 4. Drush & drupal console installed 5. Xdebug installed 6. Xhprof or any other profiler installed (optional) Anything else?