test-sandbox-compose: Lightweight development enviroments using test-sandbox

[ bsd3, library, program, testing ] [ Propose Tags ]

Modules

  • Test
    • Sandbox
      • Test.Sandbox.Compose
        • Test.Sandbox.Compose.Core
        • Test.Sandbox.Compose.Server
        • Test.Sandbox.Compose.Template
        • Test.Sandbox.Compose.Type

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.3
Change log ChangeLog.md
Dependencies aeson, base (>=4 && <5), bytestring, containers, directory, hastache, http-conduit, lifted-base, network, optparse-applicative, process, shelly, test-sandbox (>=0.1), test-sandbox-compose, text, unix, wai, wai-extra, warp, yaml, yesod, yesod-core [details]
License BSD-3-Clause
Author Junji Hashimoto
Maintainer junji.hashimoto@gmail.com
Category Testing
Bug tracker https://github.com/junjihashimoto/test-sandbox-compose/issues
Source repo head: git clone https://github.com/junjihashimoto/test-sandbox-compose.git
Uploaded by junjihashimoto at 2015-03-17T01:34:27Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables test-sandbox-compose
Downloads 2520 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2015-10-20 [all 6 reports]

Readme for test-sandbox-compose-0.1.2

[back to package description]

Test-Sandbox-Compose: Fast Development Environments Using Test-Sandbox

Hackage version Build Status

Test-Sandbox-Compose makes development environments for multi-servers using Test-Sandbox. Each server is defined in test-sandbox-compose.yml. test-sandbox-compose.yml provides following functions.

  • Mustache template for accessing each resource
  • Before/After-bash-script for server-setup
  • Tempolary file, directory and TCP-Port which test-sandbox provides

This project is inspired by Docker Compose(Fig).

Getting started

Install this from Hackage.

cabal update && cabal install test-sandbox-compose

test-sandbox-compose.yml reference

<service-name1>:
  cmd: <command-name>
  args:
    - <arg1>
    - <arg2>
  confs:
    <conf1>: <conf1 contents>
    <conf2>: <conf2 contents>
  tempfiles:
    - <temp1>
    - <temp2>
  dirs:
    - <dir1>
    - <dir2>
  ports:
    - <port1>
    - <port2>
  beforescript: <script content>
  afterscript: <script content>
<service-name2>
  ...

Example

zookeeper:
  cmd: '/usr/share/zookeeper/bin/zkServer.sh'
  args:
    - 'start-foreground'
    - '{{zookeeper_conf_conf}}'
  tempfiles: []
  confs:
    conf: |
      dataDir={{zookeeper_dir_data}}
      clientPort={{zookeeper_port_2181}}
      maxClientCnxns=1000
  dirs:
    - 'data'
  ports:
    - '2181'

Commands

Up

test-sandbox-compose up

Status

test-sandbox-compose status

Conf

test-sandbox-compose conf

Kill

test-sandbox-compose kill

Logs

test-sandbox-compose logs

Destroy

test-sandbox-compose destroy

Daemon

test-sandbox-compose daemon