This repo is for deploying a docker jenkins server on windows machine localhost.
The jenkins server uses docker container as nodes.
The repo contains a pipeline Jenkinsfile for a pipeline job named gm.
The job build and lint a python app.py application in /src directory it also test and publish the application docker images artifact to docker hub.
prerequisite:
- docker engine.
- run powershell as admin.
- free registration @ https://dashboard.ngrok.com/
.\infra-install.ps1 "username" "password"
.\ngrok http http://localhost:8080
The repo contains a Jcasc jenkins.yaml which is used by the infra-install.ps1 to set the jenkins configuration.
The "gm" job is triggered by a push event to the current repo.
The connectivity between GitHub Webhooks and the jenkins server,
is possible by using the reverse proxy tool ngrok which exposes the localhost as an https://adress to the internet.
After ngrok is executed the command would output an address which needs to be updated on the GitHub repo settings Webhooks section.
The "gm" job pushes the artifacts to: