19/09
2016
Wallogit.com
2017 © Pedro Peláez
Following in the footsteps of silverstripe/serve, this module adds straightforward docker integration to your SilverStripe project., (*1)
First, add the package ot your project, (*2)
$> composer require silverstripe/docker-serve
Next, add an entry to your composer.json saying what docker image to use:, (*3)
...
"extra": {
...
"docker-container": "sminnee/silverstripe-lamp:jessie"
...
},
...
You can run your tests with docker-phpunit:, (*4)
$> vendor/bin/docker-phpunit
And you can run a webserver based on silverstripe/serve with the following command:, (*5)
$> vendor/bin/docker-serve