In this video, learn how to add RSpec to your Docker Compose manifest to further practice using Docker Compose. Discover how to mount volumes within Docker Compose and changing the default application the container starts with.
- [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 make the test available to the container …
- Writing your first Dockerfile
- Using Docker Compose
- Testing your app with RSpec, Capybara, and Selenium
- Writing Terraform code
- Deploying a website into AWS S3
- Writing and running integration tests
- Writing a CI/CD pipeline with Jenkins
Skill Level Beginner
1. The Project/The Mission
Your application, pre-DevOps2m 59s
2. Testing Locally with Docker
3. Testing Your App with RSpec, Capybara, and Selenium
4. Infrastructure as Code with Terraform
5. CI/CD as Code with Jenkins
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.