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
POST
request to the greeting service - Passes the provided greeting via a
GET
URL 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 build
docker stack deploy -c docker-compose.yml docker-training-samples
kubectl apply -f docker-training-samples-micro-sinatra/kube -f docker-training-samples-micro-flask/kube -f docker-training-samples-micro-django/kube
This software is MIT licensed.