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

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
主站蜘蛛池模板: 岳西县| 葵青区| 岢岚县| 沾化县| 新昌县| 旌德县| 综艺| 安塞县| 曲阜市| 泰顺县| 郑州市| 磐石市| 托克逊县| 大港区| 哈尔滨市| 涿鹿县| 皋兰县| 永善县| 华容县| 舞阳县| 甘孜县| 南皮县| 海阳市| 宁夏| 林州市| 黑龙江省| 咸宁市| 固阳县| 大方县| 乾安县| 通许县| 石门县| 昌乐县| 新营市| 江都市| 迁安市| 怀安县| 民乐县| 贵溪市| 金昌市| 铜川市|