Many of us write code of our RESTful API or in general our App. And we deploy them to the Heroku or Vercel (😅 These hosting servers are quite a popular among college people atleast). And after that we can access our website that will be served by the hosting vendors like heroku or vercel.
🙋 But most of the developers (especially beginners) do write code and the things, that they don't consider are:-
- Code should be able to run on any machine
- Unit Testing
- Performance Testing
- Concurrency or Concurrent Servers
- Documenting the code
👉 Today, we'll talk about the first point and this is where concept of containerization comes into the picture.
Note:- Images are taken from SimpliLearn
The solutions to the above problem (Code is running fine on my system but not working on the machine of tester) are:-
- Use Virtual Machine
- Use Containers
🙂 One of the solution is use a Virtual machine which is a kind of simulation of a Computer. But OS in VM (Virtual machine) takes too much memory, large boot up time, Difficult to scale and low efficiency in general because of unnecessary things running that are not required to run our app.
- Git and Jira are used for the roadmap of doing things
- Gradle is used for laying out the Project structure
- Testing is done using selenium
- Integration (CI/CD) is done using Jenkins
- Docker and is used in Deployment
Follow for more, We'll talk about others in later blogs
Docker is a tool to containerize the application so that applications can work in different environments.
🙂 Some Containers Specs:-
- Multiple containers can run on the same hardware
- Containers maintains isolated applications
- Productive and Efficient
- Easy to configure
Hey, We are almost at the end. Don't give up.
📍 On the left we can see that Docker engine has client and server which are communicating through REST API. On the client side Docker CLI is running and Server side we have Docker Deamon.
📍 In more detail we can see on the right side we have different components comprised inside of Docker ecosystem.
👉 Let's see how it works:-
- Docker Client is accessed from the terminal and docker server or host runs the Deamon and Registry
- User can create docker images and run containers by passing commands to the docker server using docker client or terminal
- Docker image is a template having instructions to form up the containers. Docker image is created as Docker file
- After image creation we store it in the registry so that other people can access it from the registry
In our next Blog we'll see the Working of Docker. It will get more clear from that. Follow for more