ekandreas/docker-bedrock

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

Docker environment for Roots Bedrock projects

0.9 2016-05-30 15:48 UTC

README

License

*** WORK IN PROGRESS ***

AEKAB uses this package to enable Docker dev environment for Roots Bedrock project development.

Requirements

PHP Composer

Docker Machine

Step by step, getting started

Install Bedrock

composer create-project roots/bedrock theproject

Step into the project folder

cd theproject

Install this package with composer and require-dev

composer require ekandreas/docker-bedrock:dev-master --dev

Install deployer with composer and require-dev

composer require deployer/deployer --dev

Add this script to your composer.json scripts section:

"post-autoload-dump": [
    "EkAndreas\\DockerBedrock\\Installer::postAutoloadDump"
]
<?php
include_once 'vendor/ekandreas/docker-bedrock/recipe.php';

server('theproject.dev', 'default')
    ->env('container', 'bedrock')
    ->stage('development');

Run the containers (php+mysql+elasticsearch)

vendor/bin/dep docker:up development

Note! Change your DNS so that the URL points to the docker machine! Then browse to theproject.dev and start develop your awesome web app.

Stop the containers (php+mysql+elasticsearch)

vendor/bin/dep docker:stop development