From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting up your Docker Compose service
From the course: DevOps Foundations: Your First Project
Setting up your Docker Compose service
- [Instructor] So now we have a simple unit test and I just saved that file and closed it, and now we're going to edit our Docker Compose so that we can actually run these tests, so let me go ahead and open up Docker Compose, and this should look familiar, it's the Docker Compose for our website, so we're going to add on top of this by creating another service just to run unit tests, so let me have my unit-tests service. So every service starts with a name and is Tab, two Spaces, let me go ahead and do that again. I Tab, two Spaces, and then I type the name of the service that I want, in this case that's unit-tests, and then what I'm going to do is, I'm going to use the volume command to tell Docker Compose to mount my existing volume to the container. Now, let me go ahead and type this, it's actually volumes. We're going to say we want to mount our current directory to /app, so what this is going to do is it's going to…
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
-
-
-
-
-
(Locked)
Setting up your test5m 31s
-
(Locked)
Setting up your Docker Compose service3m 4s
-
(Locked)
Creating the Dockerfile6m 58s
-
(Locked)
Running the test2m 3s
-
(Locked)
Identifying and testing an element4m 14s
-
(Locked)
Setting up Selenium8m 33s
-
(Locked)
Adding Selenium service to Docker Compose2m 23s
-
(Locked)
Running your test with Selenium3m 2s
-
(Locked)
-
-
-