Public Repository

Last pushed: 2 years ago
Short Description
This Swagger image is a sketch for Dejan Glozic's article on aggregating microservices endpoints
Full Description

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.html has been modified to read <localhost>/apidocs.json, which aggregates resource endpoints from multiple sources
  • A custom css file has been appended
  • A nginx.conf configures a cheap server for the swagger ui.
  • A new Dockerfile.nginx based on gliderlabs/alpine has been added. It includes ONBUILD steps for specifying custom apidocs.json and nginx.conf files 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
Docker Pull Command
Owner
dylanmei

Comments (0)