michael-erasmus / docker-moto-server

Docker build for running a local moto stand-alone server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-moto-server

Docker build for running a local moto stand-alone server

This is useful for doing local integration testing of clients that use AWS services without actually hitting AWS

Usage

Start a local kinesis service

docker run -it --rm --net=host michaelerasmus/moto-server kinesis

To test it. Make sure you have aws-cli installed

aws kinesis list-streams --endpoint-url http://localhost:5000

Using it in docker-compose:

version: "3"
services:
  kinesis:
    image: michaelerasmus/moto-server
    command: ["kinesis", "-H",  "0.0.0.0"]
    expose:
      - "5000"

Building the image locally:

git clone https://github.com/michael-erasmus/docker-moto-server
cd docker-moto-server
docker build -t michaelerasmus/moto-server .

Using a custom Dockerfile:

FROM michaelerasmus/moto-server

#Customize things here

License

MIT License © 2017 Michael Erasmus

About

Docker build for running a local moto stand-alone server

License:MIT License