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
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
- use podman or follow these instructions
- use
:Z
instead of:ro
for the volume