Includes:
- Alpine Linux / Debian (slim)
- Node.js 14
- mountebank at :2525
- proxy to jsonplaceholder at :8080
- stateful response fakers for the above proxy at :8273
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.
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.
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:
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