How to test a Docker container in GitLab CI
Valentin Despa Valentin Despa
59.5K subscribers
17,427 views
334

 Published On Nov 25, 2021

Quite often we use GitLab CI to dockerize web applications. But how to start a Docker container from the GitLab Container Registry and test it?

The answer to this is a lesser-known feature in GitLab CI is the services keyword which allows you to start one or more Docker images and link them to your job. Let’s explore how this works.

--

⭐️ Video contents ⭐️

00:00 - Introduction
01:36 - Running a Docker container inside GitLab CI
05:45 - How do GitLab services work
07:40 - Using GitLab services to start a Docker container
12:34 - Running Postman/Newman tests against a Docker image
15:24 - Conclusion

--

⭐️ 🎓 GitLab CI/CD ONLINE COURSE ⭐️

Want to learn more about CI/CD pipelines? Check my GitLab CI online course.

Get it at a special price and help support this YouTube channel:
http://www.vdespa.com/courses

--

⭐️ 💬 I have a question. ⭐️

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you are asking a question, make sure to include as many details as possible.

--

⭐️ 💡 I have a video idea ⭐️

Do you want me to create a video on a specific topic? Just fill out the form below:

https://forms.gle/uWEzXFQ2viJtZtvZ7

--

⭐️ 📺 Learn GitLab on YouTube ⭐️

Collection of video tutorials:

▸ Learn GitLab CI:
   • Gitlab  

___

⭐️ 📕 Free resources ⭐️

📌 Official Gitlab CI documentation
https://docs.gitlab.com/

📌 DevOps with Valentine
  / devops-with  

--

⭐️ 📩 Contact & Imprint ⭐️

👉 Follow me on Twitter:
  / vdespa  

👉 Follow me on Medium:
  / vdespa  

👉 Follow me on Facebook:
  / valentin-despa-113038143438826  

👉 Let's connect on LinkedIn:
  / vdespa  

http://vdespa.com/imprint

__

show more

Share/Embed