diff --git a/Notes/Capstone.md b/Notes/Capstone.md index 4221df9da..e09c9b261 100644 --- a/Notes/Capstone.md +++ b/Notes/Capstone.md @@ -1,6 +1,6 @@ # Code configuration -For capstone project I made some changes in this code base. Mainly in Dockerfile. +For capstone project I made some changes in this code base. Mainly in: Dockerfile, Jenkinsfile and build.gradle. Also I learned how to use MySQL for spring petclinic - it reqiures some enviroment variables: @@ -11,3 +11,32 @@ Also I learned how to use MySQL for spring petclinic - it reqiures some envirome * MYSQL_URL They are needed for conenction to RDS. One can use it via `docker -e MYSQL_...` or `export MYSQL_...` (for `java -jar` usage). + +
+ +## Pipeline configuration + +### Build + +* Application is built with Gradle 8.X +* Checkstyle is provided via Gradle plugin + +
+ +### CI/CD + +Jenkins server needs to be initilized manually (user, password, plugins, etc.) + +For the pipeline to work correctly one needs to setup credentials for Docker Hub and GitHub in Jenkins build server after provisioning infrastructure. + +The Github credentials are used to push tags ti repository. + +Also one needs to configure repository webhook for build server. + +
+ +### Dockerfile + +For image creation basic gradle image is used for build purposes, with addition of distroless layer for application. Image is split into layers according to (at time of creation and my knowlage) current standards, and optimalized for minimal size. + +