Sign inSign up

pinterb/swagger-codegen

By pinterb

•Updated about 9 years ago

Generate API client libraries, server stubs and documentation automatically given an OpenAPI Spec.

Image
0

881

pinterb/swagger-codegen repository overview

⁠pinterb/swagger-codegen

pinterb/swagger-codegen⁠ is a docker⁠ image that bundles the following:

  • swagger-codegen v2.2.0⁠: Swagger Codegen command-line tool. The swagger codegen project, which allows generation of API client libraries, server stubs and documentation automatically given an OpenAPI Spec⁠.

⁠Details

  • By default, he container runs as "dev" user (i.e. UID 1000). But the UID/GID can be can be overridden by setting the PUID/PGID environment variables. Please keep this in mind as you mount volumes!
  • The following volumes exist (and are owned by dev):
    • /data
    • /output
    • /state
    • /config
  • /data is your default workdir.

⁠Usage

This image can easily be extended. But to generate a sample client library:

docker run -it --rm \
	-v $(SSH_DIR):/home/dev/.ssh \
	-v $(SWAGGER_SPECS_ROOT_DIR):/data:rw \
	-v $(SWAGGER_CODEGEN_OUTPUT_DIR):/output:rw \
	pinterb/swagger-codegen:2.2.0 generate \
	-i /data/swagger.json \ 
	-l java \ 
	-o /output/client/petstore/java  

⁠Misc. Info

  • Latest version: 2.2.0
  • Built on: 2016-11-28T15:42:49Z
  • Base image: pinterb/base:alpine

Tag summary

Content type

Image

Digest

Size

305.3 MB

Last updated

about 9 years ago

docker pull pinterb/swagger-codegen