/demigod-tools

terminus plugin to host demigod docker locally

Primary LanguagePHPMIT LicenseMIT

Demigod Tools

Terminus v3.x Compatible

Create a Simple Docker-Compose cluster for local development

A simple plugin for Terminus-CLI version 3.0 or newer that adds a docker compose and environment variables.

Requirements

  • Terminus version 3.0

    brew install pantheon-systems/external/terminus

  • direnv and Pipe Viewer/pv

    brew install direnv pv mysql-client

    Also, be sure to integrate DIRENV into your shell using the information here: https://direnv.net/docs/hook.html

  • Docker version 4.0+ ( docker-compose is now a part of default install )

    brew install --cask docker

  • Robo

    See the Readme on the robo repository

  • php

    Version 7.4+

Installation

To install this plugin using Terminus 3:

terminus self:plugin:install demigod-tools/demigod-tools

Configuration

These commands require no configuration

Usage

# clone the site locally with terminus 3
terminus local:clone {site_name}

# Copy the demigod docker templates into place
terminus demigod:copy-templates {SITE_NAME}

# leaving you in the site directory
>$HOME/pantheon-local-copies/{SITE_NAME}

# use robo to launch the containers
robo docker:up

Update

terminus self:plugin:update