GithubHelp home page GithubHelp logo

docker-drupal8-php7's Introduction

About

Dockerised Drupal 8 image using PHP 7 (nightly build) on Ubuntu 14.04 and configured with Drupal 8 tools.

Included Tools

  • Apache with PHP-FPM + Event MPM configured for HTTP & HTTPS and with minimal modules installed (disabled in order to work with current state of PHP 7).
  • MySQL client
  • PHP 7 nightly build.
  • Redis 3.x
  • Linux troubleshooting tools
  • git (latest version)
  • Composer - PHP dependency management.
  • Drush 8 - execute Drupal commands via the command line.
  • Drupal Console - an alternative to drush.
  • NodeJS - Javascript runtime.
  • Rsyslog and common log directory
  • Guest user (ubuntu)

Installation

Create Presistant Database data-only container

# Build database image based off MySQL 5.5
sudo docker run -d --name mysql-drupal8-php7 mysql:5.5 --entrypoint /bin/echo MySQL data-only container for Drupal 8 PHP 7 MySQL

Build Drupal Base Image

# Clone Drupal docker repository
git clone https://github.com/valkum/docker-drupal8-php7.git
cd docker-drupal8-php7

# Build docker image
sudo docker build --rm=true --tag="drupal8-php7" . | 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 Compose.
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 }}' \
dockerdrupal8php7_drupal8php7web_1) \
drupal8php7.example.com \
>> /etc/hosts"

Logging into Web Front-end

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

docker-drupal8-php7's People

Contributors

andrewholgate avatar generalconsensus avatar valkum avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.