2017 © Pedro Peláez
 

library docker

A Docker command builder configured by YAML, based on PhpZone

image

phpzone/docker

A Docker command builder configured by YAML, based on PhpZone

  • Friday, May 1, 2015
  • by jakubzapletal
  • Repository
  • 2 Watchers
  • 3 Stars
  • 1,933 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

PhpZone Docker

Build Status Scrutinizer Code Quality SensioLabsInsight, (*1)

Latest Stable Version Total Downloads License, (*2)

A Docker command builder configured by YAML, based on PhpZone. Its primary purpose is to provide a simple way to define commands for running Docker containers/instances which could be used in daily workflow of every developer. Since now not all developers need to have a knowledge about Docker but still everyone can simply understand what is running. It is not only about the knowledge but also experienced developers can find an advantage in keeping ready-made commands., (*3)

This tool is only a configurator and executor of Docker commands, it means applications Docker and Docker Compose are not included., (*4)

Basic Usage

An example speaks a hundred words so let’s go through one., (*5)

The configuration file below is used for the development of this extension:, (*6)

Create a phpzone.yml file in the root of a project:, (*7)

extensions:
    PhpZone\Docker\DockerCompose: # register an extension with a configuration
        db:
            description: Run DB which can be used for running tests
            name: myproject
            file: docker-compose.yml
            command: up

and run:, (*8)

$ vendor/bin/phpzone db

This will compose a proper Docker Compose command docker-compose -f docker-compose.yml -p myproject up and execute it., (*9)

Documentation

For more details visit PhpZone Docker documentation., (*10)

The Versions