/http-mock-server

Simple configurable http mock server using netcat

Primary LanguageShell

http-mock-server

run it

docker build -t hekmekk/json-rpc-mock-server .
docker run -p 127.0.0.1:3344:1500 -it --rm hekmekk/json-rpc-mock-server

This will setup a simple tcp server with an example configuration using responses.sample

configuration

The request_handler.sh will search the volume /docker-entrypoint.d for files containing request to response mappings. For examples, see responses.sample.

docker run -p 127.0.0.1:3344:1500 -it --rm -v $(pwd)/responses.sample:/docker-entrypoint.d/responses.sample:ro hekmekk/json-rpc-mock-server

troubleshooting fedora 31