Sign inSign up

andrewholgate/drupal-php55-dev

By andrewholgate

•Updated almost 11 years ago

Image
1

547

andrewholgate/drupal-php55-dev repository overview

Dockerised Drupal 6, 7 and 8 development environment using PHP 5.5 on Ubuntu 14.04. This image is the development companion to the docker-drupal-php55⁠ project.

⁠Included Tools

⁠Debugging Tools

  • XDebug⁠ - PHP debugging and profiling.
  • XHProf⁠ - function-level hierarchical profiler.

⁠Front-end Tools

⁠PHP Documentation Tools

  • DoxyGen⁠ - generate documentation from annotated PHP code. It is used to generate XML which is then interpreted by Sphinx.
  • Sphinx⁠ - generate beautiful Read The Docs⁠ format using Breathe⁠ as a bridge to DoxyGen XML output.

⁠Other

⁠Installation

⁠Create Presistant Database data-only container

# Build database image based off MySQL 5.5
sudo docker run -d --name mysql-drupal-php55-dev mysql:5.5 --entrypoint /bin/echo MySQL data-only container for Drupal Dev MySQL

⁠Build Drupal Base Image

# Clone Drupal base docker repository
git clone https://github.com/andrewholgate/docker-drupal-php55.git
# Build docker image
cd docker-drupal-php55
sudo docker build --rm=true --tag="drupal-php55" . | tee ./build.log

⁠Build Project Development Image

# Clone Drupal development docker repository
git clone https://github.com/andrewholgate/docker-drupal-php55-dev.git
cd docker-drupal-php55-dev

# Build docker image
sudo docker build --rm=true --tag="drupal-php55-dev" . | tee ./build.log

⁠Build Project using Docker Compose

# Customise docker-compose.yml configurations for environment.
cp docker-compose.yml.dist docker-compose.yml
vim docker-compose.yml

# Build docker containers using Docker Composer.
sudo docker-compose build
sudo docker-compose up -d

⁠Host Access

From the host server, add the web container IP address to the hosts file.

# Add IP address to hosts file.
sudo bash -c "echo $(sudo docker inspect -f '{{ .NetworkSettings.IPAddress }}' \
dockerdrupalphp55dev_drupalphp55devweb_1) \
drupalphp55dev.example.com \
>> /etc/hosts"

⁠Logging into Web Front-end

# Using the container name of the web frontend.
sudo docker exec -it dockerdrupalphp55dev_drupalphp55devweb_1 su - ubuntu

Tag summary

Content type

Image

Digest

sha256:55a08bfff…

Size

553.5 MB

Last updated

almost 11 years ago

docker pull andrewholgate/drupal-php55-dev