The test-sandbox-compose package

[Tags:bsd3, library, program, test]

[Skip to Readme]

Properties

Versions 0.1.0, 0.1.1, 0.1.2, 0.1.3
Change log ChangeLog.md
Dependencies aeson, base (==4.*), 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 BSD3
Author Junji Hashimoto
Maintainer junji.hashimoto@gmail.com
Category Testing
Bug tracker https://github.com/junjihashimoto/test-sandbox-compose/issues
Source repository head: git clone https://github.com/junjihashimoto/test-sandbox-compose.git
Uploaded Wed Mar 18 09:24:04 UTC 2015 by junjihashimoto
Distributions NixOS:0.1.3
Downloads 482 total (0 in the last 30 days)
Votes
0 []
Status Docs not available [build log]
Last success reported on 2015-09-30 [all 7 reports]

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

For package maintainers and hackage trustees

Readme for test-sandbox-compose

Readme for test-sandbox-compose-0.1.3

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