ricardosierra / robo-docker-compose
Docker compose for Robo Task Runner
Installs: 6 227
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 12
Type:robo-tasks
Requires
- php: >=5.5.0
- consolidation/robo: ^1.0 || ^2.0
Requires (Dev)
- phpunit/phpunit: ^5.5|^6.0|^7.0|^8.0|^9.0
Replaces
README
Run docker compose commands from the Robo task runner.
Getting Started
First, you'll need to download the robo docker compose library using composer:
composer require --dev ricardosierra/robo-docker-compose
Example
<?php use \Droath\RoboDockerCompose\Task\loadTasks; // Command equivalent: `docker-composer up -d -remove-orphans` $this->taskDockerComposeUp() ->detachedMode() ->removeOrphans() ->run(); // Command equivalent: `docker-composer down` $this->taskDockerComposeDown() ->run();
Support
The following commands have been implemented:
- docker-compose up - Command Options
- docker-compose ps - Command Options
- docker-compose run - Command Options
- docker-compose logs - Command Options
- docker-compose pull - Command Options
- docker-compose exec - Command Options
- docker-compose down - Command Options
- docker-compose build - Command Options
- docker-compose start - Command Options
- docker-compose restart - Command Options
- docker-compose pause - Command Options
I'll be adding the rests of the docker-compose commands shortly. Or if you want to create a PR with additional commands that would be much appreciated.