This is a dockerized django rest framework example. Once docker-compose is UP, there will be two services running based on own Dockerfiles sitting in the docker_compose directory. App code is in app folder.
Ensure that you have docker, docker-compose installed
sudo apt-get update
sudo apt-get install docker-ce
sudo apt-get install docker-compose
Want to run this on local linux? (find out windows alternatives for your windows machine)
- Ensure that you have docker, docker-compose installed
sudo apt-get update
sudo apt-get install docker-ce
sudo apt-get install docker-compose
- Clone git repo
git clone https://github.com/PatilSac/django_quiz.git
- Build the services written in docker_compose
docker-compose -f docker-compose.yml build
- Run the services using docker_compose
docker-compose -f docker-compose.yml up
There are two servers. Dockerfiles for them are located at: django_server : docker_compose/docker/Dockerfile nginx_server : docker_compose/nginx/Dockerfile
Python Web Server Gateway Interface HTTP server, running at 0.0.0.0:8000 in the django_server container. This is something that executes Python as Python isn't the best at handling all types of requests.
Web server, reverse proxy, load balancer, mail proxy and HTTP cache combination being used here for django rest framework. It is running at port 80 in its docker container and serving Gunicorn.
TBD:
GitHub Nexus
| Λ
| webhook on checkin | backup
| |
Jenkins - - - - - - - - - - - > Host - - - - - - - - - - > Kubernetes (configure, scale, monitor)
code trans unit/int test
Run these two commands and it will solve this particular problem: sudo usermod -a -G docker $USER # adds your current user to docker group newgrp docker # activates new permissions for docker group
Explain what these tests test and why
Give an example
Add additional notes about how to deploy this on a live system
- Dropwizard - The web framework used
- Maven - Dependency Management
- ROME - Used to generate RSS Feeds
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Billie Thompson - Initial work - PurpleBooth
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc