Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.1 KB

commerce-kickstarter-docker

Docker container for Commerce Kickstarter using the same apache php setup as the drupal official Dockerfile.

Installs drush to /usr/local/bin.

Build and run image

  • create a MySql database and user (example: init.sql)
  • docker build --tag=kickstarter .
  • docker run -d --name=kickstarter kickstarter

Configure kickstart

Use the web browser or drush for this step.

Browser

Navigate to kickstart on port 80 of the docker container (eg. http://172.17.0.2) and follow the steps.

To get the container ip address use this command:

docker inspect --format '{{ .NetworkSettings.IPAddress }}' <container id or name>

Drush

Run the site install command. For example:

drush -y si commerce_kickstart --db-url=mysql://kick:[email protected]/kick \
                --db-prefix="kick_" \
                --account-name=ksadmin --account-pass=ksadmin [email protected] \
                --site-name=kicktest [email protected] \
                --sites-subdir=kicktest