Skip to content

Sample code for the various training of 2hog around Docker, containers and Kubernetes — https://2hog.codes

License

Notifications You must be signed in to change notification settings

2hog/docker-training-samples

Repository files navigation

Sample Docker Microservices

This is a set of example microservices written in Django, Flask and Sinatra intended to be used as part of 2hog's Docker trainings.

Spec

The front-facing Django service provides a sign in mechanism along with a single endpoint (GET /), which:

  1. Requires session authentication
  2. Requests a greeting via a POST request to the greeting service
  3. Passes the provided greeting via a GET URL parameter to the content service
  4. Returns the received HTML fragment as part of a complete HTML document to the user

Deployment

Before deploying these apps with Docker Swarm or Kubernetes, make sure to build their images by running the following command

docker-compose build

Docker Swarm

docker stack deploy -c docker-compose.yml docker-training-samples

Kubernetes

kubectl apply -f docker-training-samples-micro-sinatra/kube -f docker-training-samples-micro-flask/kube -f docker-training-samples-micro-django/kube

License

This software is MIT licensed.

About

Sample code for the various training of 2hog around Docker, containers and Kubernetes — https://2hog.codes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •