https://github.com/chatch/commerce-kickstarter-docker
Docker container for Commerce Kickstart with in container mysql server
https://github.com/chatch/commerce-kickstarter-docker
Last synced: 3 months ago
JSON representation
Docker container for Commerce Kickstart with in container mysql server
- Host: GitHub
- URL: https://github.com/chatch/commerce-kickstarter-docker
- Owner: chatch
- Created: 2015-06-19T05:50:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-03T11:11:49.000Z (about 10 years ago)
- Last Synced: 2024-10-03T12:18:52.125Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/chatch/commerce-kickstarter-docker/blob/master/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 }}'
```
### Drush
Run the site install command. For example:
```
drush -y si commerce_kickstart --db-url=mysql://kick:kick@mysql.host/kick \
--db-prefix="kick_" \
--account-name=ksadmin --account-pass=ksadmin --account-mail=ksadmin@commerce.com \
--site-name=kicktest --site-mail=ksadmin@commerce.com \
--sites-subdir=kicktest
```