The docker image is a sketch for Dejan Glozic's article on aggregating microservices endpoints: dejanglozic.com/2014/06/25/micro-service-apis-with-some-swag-part-1
It was implemented with Swagger spec 1.2 in mind. Modifications include:
index.htmlhas been modified to read
<localhost>/apidocs.json, which aggregates resource endpoints from multiple sources
- A custom css file has been appended
nginx.confconfigures a cheap server for the swagger ui.
- A new
Dockerfile.nginxbased on gliderlabs/alpine has been added. It includes ONBUILD steps for specifying custom
nginx.conffiles in a customized build.
Building and running a new docker image:
gulp docker build -t swagger-ui -f Dockerfile.nginx . docker run --rm --name swagger -p 8080:8080 swagger-ui