Sign inSign up

naighes/imposter

By naighes

•Updated about 8 years ago

imPOSTer is a lightweight and versatile tool for the mocking of web applications.

Image
0

318

naighes/imposter repository overview

imPOSTer Logo

A Docker⁠ image for imPOSTer⁠.



⁠Quick reference

⁠Getting started

You can launch an imPOSTer container for trying it out with:

$ docker run \
    --name imposter \
    -d \
    -p 8080:8080 \
    --rm \
    naighes/imposter start

An instance will be listening on port 8080.
By default, imPOSTer will reply by a 404 (Not Found) status code.
You can start to customize the configuration by mounting a volume.

$ touch cfg.yaml
$ cat > ./cfg.yaml << 'EOF'
pattern_list:
- rule_expression: ${true}
  response:
    body: Hello, imPOSTer!
    status_code: ${200}
EOF
$ docker run \
    --rm \
    -p 8080:8080 \
    -v $(pwd)/cfg.yaml:/cfg.yaml naighes/imposter start --config-file /cfg.yaml

For a complete overview, please check the README file on Github⁠.


⁠License

MIT licensed. See the LICENSE file⁠ for details.

Tag summary

Content type

Image

Digest

Size

2.1 MB

Last updated

about 8 years ago

docker pull naighes/imposter