Please read Docker HowTo Install before installing CiviCRM
Prerequisites if required
Step 1 - Install Docker
Step 2 - Install Git
$ sudo apt-get update
$ sudo apt-get install git
Step 3 - Create blank CiviCRM and Drupal Databases
create database civicrmtest_fresh_docker
create database drupaltest_fresh_docker
Upgrade CiviCRM using Docker
Step 1. On the host machine go to directory
/local/docker/<USER>/
Step 2. Go to this directory and checkout from git docker_civicrm_fresh
sudo git clone https://github.com/LCBRU/docker_civicrm_fresh.git
sudo chmod -R 777 docker_civicrm_fresh/
This will create a directory /local/docker/<USER>/docker_civicrm_fresh
This docker script install a fresh CiviCRM installation.
Step 3. The main configuration file is in the location civicrm-install/procedures/bin/install-config.sh
Add CiviCRM version and database connections to CiviCRM and Drupal database, ensure you have created blank databases first.
Step 4. Build Docker container
sudo docker build -t lcbruit/civicrm_fresh:v4.7.15 .
sudo docker build --no-cache=true -t lcbruit/civicrm_fresh:v4.7.15 .
Ensure that the version number matches the actual CiviCRM version you are installing.
Run container
sudo docker run -v /share:/share -itd -p 80:80 lcbruit/civicrm_fresh:v4.7.15
To connect to container :
sudo docker ps -a
sudo docker exec -i -t [CONTAINER ID] /bin/bash
Step 5. Install Drupal and CiviCRM
To install Drupal point your browser to :
http://XXXXXXXXXXXXXX.xuhl-tr.nhs.uk/civicrm/install.php?profile=standard&locale=en&op=start&id=1
To install CiviCRM point your browser to :
http://XXXXXXXXXXXXXX.xuhl-tr.nhs.uk/civicrm/sites/all/modules/civicrm/install/index.php
Step 6. Ensure you have set the container to start on reboot.