MyNixOS website logo
Description

Multi-process orchestration for development and integration testing.

Keiretsu is an orchestration manager primarily designed for local development and integration testing.

It allows you to specify dependencies that should be running/available before the start of the local application, triggers setup/teardown hooks, and applies a consistent environment to all child processes ensuring deterministic and repeatable configuration.

Keiretsu

Table of Contents

Introduction

Keiretsu is an orchestration manager primarily designed for local development and integration testing.

It allows you to specify dependencies that should be running/available before the start of the local application, triggers setup/teardown hooks, and applies a consistent environment to all child processes ensuring deterministic and repeatable configuration.

Installation

GHC 7.6.2 or later is required to compile Keiretsu.

cabal install

Configuration

There are 3 configuration file formats which Keiretsu will read, controlling various aspects such as dependencies, processes, and the environment.

An example for a Haskell project named proxy with two dependencies, users and images would look as follows:

+ images/
|   + dist/
|   |   + build/
|   |   |   + images/
|   |   |       + images
|   + src/
|   |   + Main.hs
|   + .env
|   + Intfile
|   + Procfile
+ proxy/
|   + dist/
|   |   + build/
|   |   |   + proxy/
|   |   |       + proxy
|   + src/
|   |   + Main.hs
|   + .env
|   + Intfile
|   + Procfile
+ users/
    + dist/
    |   + build/
    |   |   + users/
    |   |       + users
    + src/
    |   + Main.hs
    + .env
    + Intfile
    + Procfile

Intfile

The Intfile specifies project dependencies with a key: value line based format.

An example Intfile for the proxy service (from above) which specifies two dependencies on users and images:

users: ../users
images: ../images

This will make Keirestu recurse into those sub-directories and continue looking for the various configuration file types.

Procfile

Keiretsu uses an identical format to foreman'sProcfile to describe processes.

An example Procfile for the users service (from above) specifying both web and redis proctypes:

redis: redis-server --port $PORT
web: ./dist/build/web/web -p $PORT

This will make Keiretsu will start two processes for this dependency.

Proctypes are simply unique names used to identify the related command within a dependencies' scope. Currently multiline proctypes are not supported.

.env

.env files are used to supplement the process environment with configuration values for a specific dependency.

Again, using the example project layout from above if the images service had a .env file in the project directory with the following:

IMAGES_TMP: /var/tmp/images-service

The key/value pairs would be loaded into the environment and available to all processes.

Contributing

For any problems, comments or feedback please create an issue here on GitHub.

Licence

keiretsu is released under the Mozilla Public License Version 2.0

Metadata

Version

0.4.4

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows