Docker_Projects

Docker_Projects

After The completion of training, I came to know answers of Questions like 

1). Why Docker is so fast?

2). Why Docker launch an entire OS(Container) in only 10-20 MB storage?

All credits goes to Vimal Sir only.

As a result of this training, I developed two projects in just a few weeks only.

About My Projects:-

Project-1).

No alt text provided for this image

Kafka is an opensource project and it is used for real-time streams of data. In a typical messaging system, data integration is difficult because there are many source systems and destination system therefore it is difficult to develop a data pipeline to move data. Kafka has established itself as a very popular tool for building a real data pipeline. Kafa is a highly scalable and fault-tolerant messaging system. 

No alt text provided for this image

Kafka is designed for distributed high throughput systems.Kafka uses zookeepers because zookeepers track the status of Kafka cluster nodes and it also keeps track of Kafka topics, partitions, etc.


I have created a docker-compose file in which I have used three zookeepers and single Kafka. All zookeepers have different ports. Also, I have defined a different port for Kafka. For Kafka, I have defined broker_id, zookeeper name, and on which port Kafka is listening. After writing the docker-compose file I have used docker-compose up -d command to run the file in the detachable mode this command will pull image from the docker hub and also create containers.

No alt text provided for this image


No alt text provided for this image
Here Docker is pulling images from docker hub

After building the containers I have Used Telnet utility to check connectivity to remote ports.

Using telnet utillity to  check connectivity to all defined ports.


Project-2 ).

In this project, I have developed a website using the Django framework in Python. After developing I have Dockerized the application. I have used Dockerfile, requirement.txt (all the requirement that we need is defined here), and docker-compose file in which I have defined all the environment variables and defined the port number. After that, I have used a docker-compose up command to build the image and for running the container.

Here are some snapshots of the project.

Snap of Docker Compose file used in django application.
Snap of Docker File.
Website View
Running docker images . Here blogger_web is Django application which have been dockerized.


To view or add a comment, sign in

More articles by Uditanshu Pandey

Others also viewed

Explore content categories