/kinesis-lite

Docker image for Kinesalite, a Node.js implementation of AWS Kinesis Streams

Primary LanguageDockerfileMIT LicenseMIT

Kineses Lite (Docker)

Kinesis Lite is a docker image for Kinesalite which provides a Node.js based implementation of AWS Kinesis Streams. This can then be used in development and testing.

Based on the latest Node.js 8 (LTS) Alpine library image from Docker Hub.

Supports passing all options to Kinesalite (also see the README):

$ docker run -p 4567:4567 danielnegri/kinesalite --help

Usage: kinesalite [--port <port>] [--path <path>] [--ssl] [options]

A Kinesis HTTP server, optionally backed by LevelDB

Options:
--help                 Display this help message and exit
--port <port>          The port to listen on (default: 4567)
--path <path>          The path to use for the LevelDB store (in-memory by default)
--ssl                  Enable SSL for the web server (default: false)
--createStreamMs <ms>  Amount of time streams stay in CREATING state (default: 500)
--deleteStreamMs <ms>  Amount of time streams stay in DELETING state (default: 500)
--updateStreamMs <ms>  Amount of time streams stay in UPDATING state (default: 500)
--shardLimit <limit>   Shard limit for error reporting (default: 10)

Report bugs at github.com/mhart/kinesalite/issues

Build locally

$ cd docker-kinesalite
$ docker build -t danielnegri/kinesalite .

Run (Docker Hub)

# Default
$ docker run -d -p 4567:4567 danielnegri/kinesalite

# With additional options
$ docker run -d -p 4567:4567 danielnegri/kinesalite --shardLimit 5

# With persistent data
$ docker run -d -p 4567:4567 -v $PWD/data:/var/lib/kinesalite/data danielnegri/kinesalite --path /var/lib/kinesalite/data