This is a set of example microservices written in Django, Flask and Sinatra intended to be used as part of 2hog's Docker trainings.
The front-facing Django service provides a sign in mechanism along with a single endpoint (GET /), which:
- Requires session authentication
- Requests a greeting via a
POSTrequest to the greeting service - Passes the provided greeting via a
GETURL parameter to the content service - Returns the received HTML fragment as part of a complete HTML document to the user
Before deploying these apps with Docker Swarm or Kubernetes, make sure to build their images by running the following command
docker-compose builddocker stack deploy -c docker-compose.yml docker-training-sampleskubectl apply -f docker-training-samples-micro-sinatra/kube -f docker-training-samples-micro-flask/kube -f docker-training-samples-micro-django/kubeThis software is MIT licensed.