/hydra

CLI tool for starting tests servers for microservices. Used for integration tests.

Primary LanguageGoMIT LicenseMIT

Hydra

CLI tool for starting tests servers for microservices. Used for integration tests.

Installation

go get -u github.com/br0r/hydra

Usage

hydra [OPTIONS] COMMAND

Commands:  
  init - Create hydra project [--clean]  
  start - Start hydra servers  
  stop - Stops started servers  
  ls - Show started servers  
  logs [name] - Show logs for servers, or for specific server given by name   

Structure for .yml file

.hydra.yml

---

services:
  - name: string #Identifier name.
    path: string #Local path or git repo (only ssh for now).
    start: string #Command to run on hydra start.
    install: string #If we need to do any installation after fetching, specify command here.
    config:
      src: string #Where to find config file to user for service>
      dest: string #Where to put it.
    env: map #If we need any ENV variables set when running start, specify them here
      #E.g NODE_ENV: "test"