Skip to content

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

Notifications You must be signed in to change notification settings

asyrjasalo/mountebank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prebuilt mountebank Docker image

Includes:

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:

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

About

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

Resources

Stars

Watchers

Forks