├── Dockerfile ├── README.md └── LICENSE /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.12 2 | 3 | EXPOSE 2525 4 | 5 | CMD ["mb"] 6 | 7 | ENV NODE_VERSION=12.18.4-r0 8 | 9 | RUN apk update \ 10 | && apk add --no-cache nodejs=${NODE_VERSION} npm=${NODE_VERSION} \ 11 | && apk --no-cache add curl 12 | 13 | ENV MOUNTEBANK_VERSION=2.4.0 14 | 15 | RUN npm install -g mountebank@${MOUNTEBANK_VERSION} --production \ 16 | && npm cache clean --force 2>/dev/null \ 17 | && rm -rf /tmp/npm* 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Mountebank 2 | 3 | A docker image for [mountebank](http://www.mbtest.org/). 4 | 5 | ## Run 6 | 7 | Run the image as follows replacing PORT with the port of your imposter(s) 8 | 9 | docker run -p 2525:2525 [-p PORT:PORT] -d ohmrefresh/mountebank 10 | 11 | Alternatively, use --net=host to use the host network and avoid need to specify all the imposter ports upfront 12 | 13 | docker run --net=host -d ohmrefresh/mountebank 14 | 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Andy Bell 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------