Lab 1 Report
- Include a link to a successful run of the CI/CD job that executed the game: https://gitlab.stud.atlantis.ugent.be/rdruyver/devops-project/-/pipelines/77456
- Report on the structure of your
.gitlab-ci.yml, detailing problems you encountered and how you solved them:- Declaring the base image, which is a jdk
- Defining all environment variables
- Defining the caching rule
- Listing the 3 stages
- Defining the stages
- Answer the questions posed in the section above:
-
What is
./mvnwand what is the advantage of using it abovemvn?./mvnw is a maven (mvn) wrapper. It allows developers to use maven and its related commands in a project specific environment.
-
Explain the key differences between GitLab's
cacheandartifactsmechanisms. For each of Maven dependencies and build files, explain which mechanism you chose and why. What are the trade-offs of your choices?Cache is to cache dependencies to make sure they're only downloaded once in between pipeline stages. Artefacts are to pass through build files to next stages of the pipeline to make sure they're not builded multiple times.
-
In this lab, we use a
25-jreimage as the base for our runtime container and a25-jdkimage for the CI/CD build jobs. Explain the reasoning behind this choice. What would be the impact (positive or negative) of using25-jdkfor both? What about using25-jrefor both?Jre (java runtime environement) is to run java while jdk (java development kit) is to develop java. Using jre to develop java wouldn't work since it doesn't have the required tools, and using jdk to run java would work but it would be unnecessary large.
-