phpzone / docker
A Docker command builder configured by YAML, based on PhpZone
Installs: 1 951
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 2
Open Issues: 2
Requires
- php: >=5.3
- phpzone/phpzone: 0.2.*@beta
- phpzone/shell: 0.2.*@beta
- symfony/config: ~2.3
- symfony/dependency-injection: ~2.3
- symfony/options-resolver: ~2.3
Requires (Dev)
- behat/behat: ~3.0
- bossa/phpspec2-expect: ~1.0
- jakubzapletal/php_codesniffer-rules: ~0.1
- phpspec/phpspec: ~2.2
- phpunit/phpunit: ~4.6
- squizlabs/php_codesniffer: ~2.3
Conflicts
- phpzone/phpzone: 0.1.*
This package is not auto-updated.
Last update: 2024-10-26 17:40:27 UTC
README
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.
This tool is only a configurator and executor of Docker commands, it means applications Docker and Docker Compose are not included.
Basic Usage
An example speaks a hundred words so let’s go through one.
The configuration file below is used for the development of this extension:
Create a phpzone.yml
file in the root of a project:
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:
$ vendor/bin/phpzone db
This will compose a proper Docker Compose command docker-compose -f docker-compose.yml -p myproject up
and
execute it.
Documentation
For more details visit PhpZone Docker documentation.