silverstripe/docker-serve

dev-master 2016-09-19 06:17 UTC

This package is auto-updated.

Last update: 2020-05-14 05:55:06 UTC


README

Following in the footsteps of silverstripe/serve, this module adds straightforward docker integration to your SilverStripe project.

Usage

First, add the package ot your project

$> composer require silverstripe/docker-serve

Next, add an entry to your composer.json saying what docker image to use:

  ...
  "extra": {
   ... 
    "docker-container": "sminnee/silverstripe-lamp:jessie"
   ... 
  },
  ...

You can run your tests with docker-phpunit:

$> vendor/bin/docker-phpunit

And you can run a webserver based on silverstripe/serve with the following command:

$> vendor/bin/docker-serve

Coming soon

  • Running arbitrary commands
  • Managing support services (such as starting a database)