This container aids you to quickly cache http/https calls to any website or api and store them for further use.
It just a quick way to use the Flickr's yakbak project.
It works as a proxy for a given endpoint. Instead of hitting that endpoint you'll hit the url http://localhost:7000
. The first call will be forwarded to the real endpoint, recording both the request and the response.
All the subsequent ones will be provided by the cached version. That's it.
PROXY_PORT
defaults to 7000
Starts it to record and proxy further requests to the given url
docker run --rm -ti yakbak-docker https://google.com
This is handy to allow you to share those tapes with your team. As they're just plain js files you can versionate them on git.
docker run --rm -ti -v "$(pwd):/tapes" yakbak-docker https://google.com