The image contains the following -
- PHP 5.5 + Apache
- Drush 6
- Commerce Kickstart (7.x-2.23)
The image must be linked with a database container (e.g. mysql).
Building with Docker compose
- Ensure you have Docker and Docker compose installed. See https://docs.docker.com/compose/install/ to get started. If you are using Mac you will probably need to install boot2docker
- Build the Dockerfile:
git clone https://github.com/Capgemini/apollo-drupal-commerce-kickstart.git cd apollo-drupal-commerce-kickstart docker-compose build
- Run the Docker image
docker-compose up -d
This should bring up 2 containers, 1 Drupal Commerce Kickstart/PHP/Apache and a second MySQL
container. Both containers should be linked and the Commerce Kickstart distribution should be installed (via Drush) on startup.
Building the image standalone
docker run --rm --name commerce_kickstart --link db:mysql capgemini/apollo-commerce-kickstart:latest
...where db:mysql matches the name and alias of your DB instance. The values from your linked DB instance will be used to complete the setup.
Once the container is up browse to port 80 on the container to view the site.