Skip to content

Docker container for Commerce Kickstart with in container mysql server

Notifications You must be signed in to change notification settings

chatch/commerce-kickstarter-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Docker container for Commerce Kickstart with in container mysql server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published