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

0.4.0 2020-09-02 08:46 UTC

This package is auto-updated.

Last update: 2024-04-10 12:13:40 UTC


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:

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.