The course is part of this learning path
In this course, we will learn the concepts of microservice and spring framework with a focus on Cloud.
Learning Objectives
- Learn about Cloud
Intended Audience
- Beginner Java developers
- Java developers interested in learning how to Build and Deploy RESTful Web Services
- Java Developers who want to develop web applications using the Spring framework
- Java Developers who want to develop web applications with microservices
- Java Developers who wish to develop Spring Boot Microservices with Spring Cloud
Prerequisites
- Basic Java knowledge
Dockerfile. Hello dear friends. In this video, we will learn about Dockerfiles. To put it briefly, Dockerfiles allow you to containerize your application. You know, we generated our project templates using Open Liberty. Open Liberty also generates Dockerfiles for your projects. As you see here, there is a Dockerfile. We can use it to containerize our application. Let's open a terminal window in the project folder, list the files. Okay, there is the Dockerfile. The only thing we need to do is add the expose port definition. Let's add it. First, look at our server.xml file to see which port we need to export. Open Dockerfile, add expose ports. Okay, save the changes. To containerize our project, let's run docker build -t, project name. Okay, this is going to take a while. All right, we have a container for our project. We can run it by typing, docker run -dp port 1 -p port 2 container name. All right, it started. We can see it in the container list. As you can see here, we can see it in the container list. Let's try to open the user interface. All right. As you can see it works. So, now we've learned about Dockerfiles. I'll see you in the next lesson.
OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.