silverstripe/docker-serve

This package is abandoned and no longer maintained. No replacement package was suggested.

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

This package is auto-updated.

Last update: 2024-03-14 13:57:09 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)