in this is we run a Kubernetes cluster using AWS and using a jenkins-ci with a pipeline that is triggered at the startup.
- firstly, you build the docker image
- you create your instance in AWS to run the docker image
- execut the plan from terraform
$ git clone https://github.com/mulatinho/jenkins-ci-pipeline-example.git
$ cd jenkins-ci-pipeline-example
$ docker build -t jenkins-ci .
$ docker run -p 8080:8080 jenkins-ci
$ terraform init
$ terraform plan -out plan.jenkins.out
$ terraform apply "plan.jenkins.out"
- access the jenkins on browser
- got to job list
- enter
petclinic-job
job - make him build