Cloud Capstone
Cloud Capstone
INTRODUCTION:
The Flight Management System project is a Python Django application
designed to streamline flight operations. It offers features like flight scheduling,
passenger management, crew assignment, and inventory tracking. By leveraging
Django's robust framework, the system ensures efficient data management and user
interaction. Dockerizing the application involves containerizing it for easy deployment
and scalability. With Docker, the project gains portability and consistency across
different environments, simplifying the deployment process and enhancing system
reliability. This approach facilitates seamless integration into existing infrastructure and
enables rapid deployment of updates and enhancements to the Flight Management
System.
PROCEDURE :
Step 1: Define the application dependencies
1. Create a directory for the project:
$ mkdir flight_management_system
$ cd flight_management_system
Step 4: Create a Python file named manage.py and add the following code:
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'capstone.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
Step 5: Build and run the Docker container using the docker compose up command:
$ docker-compose up