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
- Host: GitHub
- URL: https://github.com/asyrjasalo/mountebank
- Owner: asyrjasalo
- Created: 2019-07-25T06:29:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-24T18:18:11.000Z (over 4 years ago)
- Last Synced: 2025-01-15T21:41:23.790Z (4 months ago)
- Language: JavaScript
- Homepage: https://hub.docker.com/r/asyrjasalo/mountebank
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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" \
./mountebankPass 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_imageTag and push the image as 'alpine' to [Docker Hub](https://hub.docker.com):
REGISTRY_URL="$USER" \
docker/tag_and_push_imageTag and push the image as 'slimbuster' (note: build on Debian image first):
REGISTRY_URL="$USER" \
IMAGE_KIND=slimbuster \
docker/tag_and_push_image