From the course: Kubernetes: Your First Project (2021)
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Testing the website with make - Kubernetes Tutorial
From the course: Kubernetes: Your First Project (2021)
Testing the website with make
- [Instructor] Let's run this target. First, we'll save the file and then close it. Next, we'll go into our terminal and ensure that we're in the right working directory, which we are. Finally, we'll run our make target by running make run_website. Now I forgot to remove my prerequisites, they don't exist. So let me go ahead and do that now. All right, they're gone. So let's go ahead and try that again. That's a weird error message. Why are we getting this? Well, if going back to our make file here, if you remember, I mentioned earlier that this target is a name of a file that make expects to exist after it runs. Now, if we look inside of our directory, we can see that we have a file called run website already there. So what make did, is it ran the target as we expected it but because the file was already created, there was nothing to do, right? Because it's already there, right? So, in order to fix this, we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Installing Docker2m 49s
-
(Locked)
Writing our project's Dockerfile5m 28s
-
(Locked)
Building the Docker image from the Dockerfile4m 27s
-
(Locked)
Writing our project's makefile2m 51s
-
(Locked)
Testing the website with make1m 41s
-
(Locked)
Challenge: Write a teardown make target32s
-
(Locked)
Solution: Write a teardown make target2m 40s
-
-
-
-
-
-