A docker image for Prism, the command-line tool for Stoplight.io.
Pull the jamesmessinger/stoplight-prism
image from DockerHub
docker pull jamesmessinger/stoplight-prism
You can run this Docker image just like the Prism CLI:
NOTE: If your prism command needs to access local files, then mount them in the
/app
directory
docker run -v $(pwd):/app \
jamesmessinger/stoplight-prism \
conduct collection.json \
--spec spec.json \
--env environment.json
To build/test the image locally on your computer:
-
Clone this repo
git clone https://github.com/JamesMessinger/docker-images.git
-
Build the image
docker build --tag jamesmessinger/stoplight-prism:latest stoplight-prism
-
Run the image
See the usage section above -
Publish the image to DockerHub
docker push jamesmessinger/stoplight-prism:latest