Skip to content

aurelienlair/mountebank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mountebank Docker Image

Mountebank is a nice tool if you want to mock APIs. With this repo it's pretty easy to install the latest version of mountebank. It exposes port 5959 ready for configuration and to test what you need.

Build and run the container

Build docker image by running:

docker build --rm -t mountebank:2.0.0 .

Running mountebank container is achieved by:

docker run -p 5959:5959 --rm --name mountebank mountebank:2.0.0 -d

Then you can try if by running:

Testing

Now you are ready to try the set-up

aurelien@linux:~$ /usr/bin/curl -v "http://localhost:5959/ping" \
-H "Accept: application/json"

> GET /ping HTTP/1.1
> User-Agent: /usr/bin/curl/7.55.1
> Host: localhost:5959
> Accept: application/json
>
< HTTP/1.1 200 OK
< Date: Sun, 05 May 2019 15:20:13 GMT
< Cache-Control: no-cache, private
< X-RateLimit-Limit: 60
< X-RateLimit-Remaining: 59
< Content-Length: 6
< Connection: close
< Content-Type: application/json
<
{
    "value":"pong"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors