System Requirements:
- 4GB available RAM.
- 20GB available disk storage.
Getting started:
-
Install prerequisites:
-
Checkout this repository and change directory to the root of the repository.
-
[Optional] Create a
.env
file and update your GitHub credentials and repository settings. See.env.example
file for reference. -
Launch or reset workshop:
$ ./reset-workshop.sh Resetting Jenkins workshop: 'cicd-jenkins-workshop-1'... ... Switched to context "cicd-jenkins-workshop-1". Installing Jenkins... Done! ==================================================================================== Jenkins Admin user URL: http://192.168.39.20:32000/login Jenkins Admin user name: admin Jenkins Admin user password: secret GitHub WebHook URL: (Ngrok tunnel) https://123456abc.ngrok.io/github-webhook/ ====================================================================================
-
[Optional] Update GitHub webhook URL in your GitHub repository settings.
-
Login to the Jenkins web UI and enter your credentials. If you see the
Welcome to ${WORKSHOP_NAME} Jenkins CI/CD!
screen, you are ready!
Cleanup:
$ (source .env.example && minikube delete --profile ${WORKSHOP_NAME})
Scala Project:
- Run unit tests:
$ sbt 'testOnly -- -n UnitTest'
- Run "Slow" suite:
$ sbt 'testOnly -- -n Slow'
- Run all tests:
$ sbt test