All Projects → pact-foundation → pact-stub-server-archived

pact-foundation / pact-stub-server-archived

Licence: MIT license
Wraps the Pact Rust mock server in a Docker container

Programming Languages

Dockerfile
14818 projects

Pact Stub Server - Archived

This has been merged into the repo with all the stub server code.

Run a Stub Server from one or more local or remote Pact files.

Handy for automating external API dependencies of a project.

Docker image: https://hub.docker.com/r/pactfoundation/pact-stub-server/

Running

See https://github.com/uglyog/pact-stub-server for the available CLI options.

Example

# Create a Stub API
docker pull pactfoundation/pact-stub-server
docker run -t -p 8080:8080 -v "$(pwd)/pacts/:/app/pacts" pactfoundation/pact-stub-server -p 8080 -d pacts

# Test your stub endpoints
curl -v $(docker-machine ip $(docker-machine active)):8080/bazbat
curl -v $(docker-machine ip $(docker-machine active)):8080/foobar
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].