Recall & Review
beginner
What is GitLab CI?
GitLab CI is a tool built into GitLab that helps automate testing, building, and deploying your code using pipelines.
Click to reveal answer
beginner
Why use Docker in GitLab CI pipelines?
Docker lets you run your code in containers, which are like small, consistent environments. This makes sure your code runs the same way everywhere.
Click to reveal answer
beginner
What is a .gitlab-ci.yml file?
It is a file in your project that tells GitLab CI what steps to run, like building or testing your code, and how to run them.
Click to reveal answer
beginner
How do you specify a Docker image in GitLab CI?
You add 'image: ' at the top of your .gitlab-ci.yml file to tell GitLab which Docker image to use for running jobs.
Click to reveal answer
intermediate
What is the purpose of the 'services' keyword in GitLab CI with Docker?
The 'services' keyword lets you run extra Docker containers alongside your job, like a database, so your tests can use them.
Click to reveal answer
In GitLab CI, how do you tell the pipeline to use a specific Docker image?
✗ Incorrect
You specify the Docker image directly in the .gitlab-ci.yml file using the 'image' keyword.
What does the 'services' keyword do in a GitLab CI pipeline?
✗ Incorrect
'services' runs extra containers like databases that your job can connect to during execution.
Which file controls the steps and Docker images used in GitLab CI?
✗ Incorrect
The .gitlab-ci.yml file defines the pipeline jobs, steps, and Docker images.
Why is Docker useful in CI pipelines?
✗ Incorrect
Docker containers ensure your code runs the same way on any machine by packaging dependencies.
What happens if you don't specify a Docker image in GitLab CI?
✗ Incorrect
GitLab uses a default image or the runner's environment if no image is specified.
Explain how to set up a simple GitLab CI pipeline that uses Docker to run tests.
Think about the file, image, jobs, and running commands.
You got /5 concepts.
Describe the role of Docker containers in GitLab CI pipelines and why they are helpful.
Focus on environment consistency and isolation.
You got /5 concepts.