官术网_书友最值得收藏!

Introduction to Docker

In this section, we will learn about Dockers and related concepts. The primary reason why Docker was introduced is that Docker is a virtualization technology which helps IT organizations, including developers, QA, and IT staff, achieve some of the following:

  • Helps to create cloud-native applications by containerizing apps/microservices using Docker. Note that Spring Boot is used for building microservices. These Spring Boot apps/microservices can be containerized using Docker, and deployed and managed on any Cloud platform using container-orchestration tools such as Kubernetes, Mesos, Docker Swarm, and so on. Thus, it is important to get an understanding of Docker.
  • Enhances application portability by enabling Dev/QA team develop and test applications in a quick and easy manner in any environment.
  • Helps to break the barriers between the Dev/QA and Operations teams during the software development life cycle (SDLC) processes.
  • Optimizes infrastructure usage in the most appropriate manner.

In this section, we will emphasize the first point in the preceding list, which would help us set up Spring web application development in a quick and easy manner.

So far, we have seen the traditional ways in which we could set up the Java web application development environment by installing different tools in independently, and later, configuring them appropriately. In a traditional setup, one would be required to set up and configure Java, Maven, Tomcat, MySQL server, and so on, one tool at a time, by following manual steps. On the same lines, you could see that all of the steps described in the preceding sections have to be performed one-by-one manually. The following are some of the disadvantages of setting up development/test environments in this manner:

  • Conflicting runtimes: If a need arises to use software packages (say, different versions of Java and Tomcat) of different versions to run and test the same web application, it can become very cumbersome to manually set up the environment having different versions of the software.
  • Environments getting corrupted: If more than one developers are working in a particular development environment, there are chances that the environment could get corrupted due to the changes made by one developer which the others are not aware of. That, generally leads to developers/teams productivity loss due to the time spent in fixing the configuration issue or re-installing the development environment from scratch.
  • "Works for me" syndrome: Have you come across another member of your team saying that the application works in their environment although the application seems to have broken?
  • New Developers/Testers on-boarding: If there is a need to quickly on-board the new developers, manually setting up the development environment takes some significant amount of time depending upon the applications' complexity. 

All of the preceding disadvantages can be taken care of by making use of the Dockers technology. In this section, we will learn briefly about some of the following:

  • What are Docker containers?
  • What are the key building blocks of Docker containers?
  • Installing Dockers
  • Useful commands to work with Docker containers
主站蜘蛛池模板: 沙河市| 通河县| 隆回县| 宁蒗| 金山区| 东乌珠穆沁旗| 松滋市| 汝城县| 德清县| 苍南县| 镇原县| 淳化县| 洪雅县| 壶关县| 澄城县| 榆社县| 永宁县| 台前县| 韩城市| 抚宁县| 巩义市| 梨树县| 盐源县| 苍山县| 横山县| 花莲市| 大理市| 阿尔山市| 大足县| 延庆县| 罗田县| 紫阳县| 乐都县| 大连市| 平山县| 阜新| 陵水| 尉犁县| 中西区| 陇川县| 佛冈县|