An open API service indexing awesome lists of open source software.

https://github.com/asyrjasalo/mountebank

Mountebank with test APIs, on Alpine Linux and Debian Buster Docker images
https://github.com/asyrjasalo/mountebank

Last synced: 2 months ago
JSON representation

Mountebank with test APIs, on Alpine Linux and Debian Buster Docker images

Awesome Lists containing this project

README

        

# Prebuilt mountebank Docker image

Includes:

- Alpine Linux / Debian (slim)
- Node.js 14
- [mountebank](https://www.mbtest.org/) at [:2525](http://localhost:2525)
- [proxy to jsonplaceholder](https://jsonplaceholder.typicode.com/) at [:8080](https://localhost:8080)
- stateful response fakers for the above proxy at [:8273](http://localhost:8273)

## Run locally

Build a new image based on `Dockerfile` and run it:

./mountebank

Append any Mountebank command-line parameters:

./mountebank --version

Pass variable `BUILD_ARGS` to include additional `docker build` arguments:

BUILD_ARGS="--build-arg FROM_IMAGE=asyrjasalo/mountebank:slimbuster" \
./mountebank

Pass variable `RUN_ARGS` to include additional `docker run` arguments.

## Build a base image

Alpine Linux:

docker/build_and_test_image

Debian Buster (slim):

IMAGE_KIND="slimbuster" docker/build_and_test_image

Pass variable `BUILD_DIR` to override the directory path where `Dockerfile` is.

## Push the base image

Remember to `docker login` first.

Push the image to the private Docker registry:

REGISTRY_URL=https://your.azurecr.io \
docker/tag_and_push_image

Tag and push the image as 'alpine' to [Docker Hub](https://hub.docker.com):

REGISTRY_URL="$USER" \
docker/tag_and_push_image

Tag and push the image as 'slimbuster' (note: build on Debian image first):

REGISTRY_URL="$USER" \
IMAGE_KIND=slimbuster \
docker/tag_and_push_image