From the course: DevOps Foundations: Your First Project

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Viewing our test harness in Docker Compose

Viewing our test harness in Docker Compose

From the course: DevOps Foundations: Your First Project

Viewing our test harness in Docker Compose

Now that we have a skeleton for our tests, we're ready to run our tests within Docker Compose. As always, before going any further, make sure that you're in the Explore California website working directory that we've been using or run "cd ~/explore- california-website" to go back into it. I've created the Compose service and an updated version of the Dockerfile we created earlier to save us some time. While we already have the updated Compose service in our docker-compose.yaml, we'll need to obtain the updated Dockerfile that goes along with it. This file is in the "05_03_before" folder within your exercise file bundle. Like we did before, let's run "cp", then the path to your exercise files bundle, or "~/Downloads/exercise_files/" in my case. Then, "05_03_before/Dockerfile" and then copy it right into our Explore California website directory. Now, let's make sure that we have it. You should see Dockerfile in the list over here. And then when you open Dockerfile with Vim, you should…

Contents