Giter Club home page Giter Club logo

docker-drupal-dev's Introduction

docker-drupal-dev


A Dockerfile to be used to build an image to create a container to start a webservice for local drupal development.

login : root password: ub ==> replace password when using it
mysql : root password: mypwd ==> replace password when using it

to create and execute the container :

checkout your drupal development code in /path/to/drupal7
create sites/default/files and sites/default/settings.php if they not exists and make them writable as needed

To keep your database between container starts, create a directory sites/default/files/mysql

Now you are ready to start the webservice:

cd /path/to/drupal7
docker run -d -v `pwd`sites/default/files/mysql:/var/lib/mysql -v `pwd`:/var/www fjmk/docker-drupal-dev

real markdown in README.md

Find the IP of the docker container:

docker inspect `docker ps -q -l` | grep IPAddress | awk '{print $2}' | tr -d '",/n'

*NOTE: The **first** time you start the container you have to wait ~25 seconds before starting the browser* Start your browser: http://<container_ip>/ or http://<container_ip>/install.php
### Software installed
  • sshd
  • ubuntu 13.10
  • apache 2.4.6
  • php 5.5.3
  • mysql 5.5
  • opcache is configured
  • xdebug remote is configured
  • drush master branch (works for drupal 8)
  • composer

### Advanced use.

Login to the container:
ssh root@ --> password ub

Add your own ssh key to login without password:
ssh-copy-id root@<container_ip>

###Todo:

Howto use PHPStorm, xdebug and profiler
Create a drush command to start the container

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.