Lab 1 Report
Successful run: https://gitlab.stud.atlantis.ugent.be/artvacke/devops-project/-/jobs/246555
- What is ./mvnw and what is the advantage of using it above mvn?
- ./mvnw is een wrapper script. Zo gebruikt iedereen dezelfde maven versie en moet de developer zelf maven niet installeren.
- 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 vooral voor dependencies
- artifacts vooral voor build files van jobs
- 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 is een runtime die enkel dient voor java projects te runnen
- jdk is een development runtime die ook gebruikt kan worden voor java projects te compileren
- een jdk image is groter dan een jre image. Het is best practice om productie images zo klein mogelijk te houden.