Docker Compose file to generate a complete Swagger Development environment (Editor + Generator) No outbound http calls to * .swagger.io
Please install
- Docker Toolbox
https://www.docker.com/products/docker-toolbox
- Docker-Compose
https://docs.docker.com/compose/
Clone the repository
Using Kitematic (Docker toolbox), click Docker CLI to open a console which is remoted into your Virtual Box VM with Docker.
In the console, run:
/> docker-compose -f docker-compose.yaml up -d
At this point 2 docker containers will be created:
- swaggercompleteselfhosted_editor_1 (port 28099)
- swaggercompleteselfhosted_codegen_1 (port 28199)
In your Chrome web browser, navigate to
https://192.168.99.100:28099
Swagger-editor should now load.
With the editor still open, and developer network tab open, in the menu
- Generate Server | Aspnet5
a zip file should start downloading. in the network tab, you will see a HTTP POST to
https://192.168.99.100:28199/api/gen/clients/csharp
To verify the code generation is produced locally, In Kitematic under the swaggercompleteselfhosted_codegen_1 container you should see a log
looking for fileId 178b167b-641d-41d6-a396-c864df847e33
got filename /tmp/codegen-7652262760374524981-tmp/csharp-client-bundle.zip
this is getting generated from your local environment.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- V1
Copyright @ 2016 Spudmash Media Pty Ltd