Setup CI
After a successful Terraform deployment, it is time to move onto service configuration. More specifically, Jenkins and the integration pipeline.
Jenkins initialization
With Jenkins running for the first time, we need to complete a short setup routine. First, we need to SSH into the node and retrieve the admin password stored in /var/lib/jenkins/secrets/initialAdminPassword
:
We are mainly interested in the pipeline group of plugins which is included with the suggested ones:
After the plugins installation has completed, it's time to create our first user:
With this the initialization process is complete and Jenkins is ready for use:
Writing a demo app
Before configuring the CI pipeline, it will help to have something to do some integration on. A basic Hello World type of PHP code will do, so with a sincere apology to all PHP developers out there, I present you with the source of our demo app:
Note
Please refer to: https://github.com/PacktPublishing/Implementing-DevOps-on-AWS...