From the course: .NET Microservices for Azure Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Creating the Dockerfile and modifying the workflow - Azure Tutorial
From the course: .NET Microservices for Azure Developers
Creating the Dockerfile and modifying the workflow
- [Instructor] Okay, let's add the Dockerfile to the clinic microservice and then modify the GitHub actions workflow to build and push its container image. However, before we continue, you can see that I've renamed the clinic project to Wpm.Clinic.Api for consistency reasons and also renamed the corresponding folder. Okay, that said, let's right-click here and then Add Docker Support, Linux and Dockerfile. And that's it. Now we're ready to modify the workflow file. So let's change the branch, in this case, is 5_07E. And now we need to copy this. Let's copy the entire action. And down below, I'm going to paste it right here. So let's rename this Build and push management container image. And this other one is going to be Clinic container image. I have to replace management with clinic, and let's do that. And then the name for this container image should be clinic and those other things are fine. And then docker push clinic and then the rest is fine. Okay, now let's do the same for this…
Contents
-
-
-
-
-
-
-
(Locked)
Creating the Clinic microservice2m 44s
-
(Locked)
Adding the ClinicDbContext class3m 44s
-
(Locked)
Implementing the ManagementService class5m 41s
-
(Locked)
Implementing the ClinicApplicationService class6m 35s
-
(Locked)
Adding resilience traits to the microservice using Polly3m 20s
-
(Locked)
Creating the Container App for the Clinic microservice1m 2s
-
(Locked)
Creating the Dockerfile and modifying the workflow3m 17s
-
(Locked)
Adding environment variables to the Clinic microservice4m 41s
-
(Locked)
Challenge: Implementing a new endpoint and memory cache1m 30s
-
(Locked)
Solution: Implement a new endpoint and memory cache2m 41s
-
(Locked)
-