microservices with swagger, flask and docker

15
Microservices with Swagger, Flask and Docker BOSM - Bangalore Open Source Meetup @dhilipsiva Tech Lead, Full-Stack & DevOps - @Appknox http://dhilipsiva.com [email protected]

Upload: dhilipsiva-

Post on 15-Apr-2017

322 views

Category:

Engineering


6 download

TRANSCRIPT

Microservices with Swagger,Flask and DockerBOSM - Bangalore Open Source Meetup

@dhilipsiva

Tech Lead, Full-Stack & DevOps - @Appknox http://dhilipsiva.com [email protected]

@dhilipsivaTech Lead, Full-Stack & DevOps - @Appknox

I code for Web, Mobile, Embedded & IoT. Open-Source Fanatic. Big Data & Machine LearningEnthusiast. Dad. Atheist

So primarily a Developer + little bit of this & that

Jack of all trades & Master of none

I have no idea what I amtalking about

The Open API Speci�cation - V2.0(f.k.a. Swagger Speci�cation)

The OpenAPI Speci�cation (originally known as theSwagger Speci�cation) is a speci�cation for machine-readable interface �les for describing, producing,consuming, and visualizing RESTful web services.(Quoted from Wikipedia)

Swagger™ is a project used to describe anddocument RESTful APIs.

https://github.com/OAI/OpenAPI-Speci�cation

UsesLanguage Neutral & Machine Readable Format

APIs can be de�ned in JSON or YAML

API-First Development

Tooling Support (core, UI, codegen, editor)

History2010: Tony Tam @Wordnik founded Swagger

2010-2014: Development, Growth, Adoption,Tooling, Community

Early 2015: Swagger acquired by SmartBear

Late 2015: Swagger donated to "LinuxFoundation" as“OpenAPI Speci�cation”

Google Search Activity

GitHub - Starts / Forks / Pulls

Issues / Events / Commits

Break

Hands OnConnection Example Repo: https://github.com/ds-forks/connexion-example

swagger-codegen generate -i swagger.yaml -l java -o /tmp/swagconnexion run swagger.yaml --stub --debug

Docker $ docker build -t connexion-example . $ docker run -d -p 8080:8080 connexion-example $ ./test.sh # do some test HTTP requests