An unbaked vagrant box that uses chef to spin up a pipeline consisting of archiva, github, sonarqube, jenkins, tomcat, selenium, and hygieia.
The unbaked version can be found here: https://github.com/liatrio-chef/hygieia-dev-unbaked
The baked version can be found here: https://github.com/liatrio-chef/hygieia-dev-baked
Vagrant 1.8.1
ChefDK must be installed: https://downloads.chef.io/chef-dk/
vagrant-berkshelf plugin must installed: vagrant plugin install vagrant-berkshelf. This cookbook relies on Berkshelf to pull wrapper cookbook dependencies from https://github.com/liatrio-chef
git clone git@github.com:liatrio/hygieia-dev-unbaked.git
vagrant up
Pipeline (Internal IP 192.168.100.10)
-
Jenkins - Browse to http://localhost:18083/
- may need to build petclinic 1-3x due to network issues if archiva fails to mirror artifacts
- on successful build the war is deployed to the tomcat instance by scp'ing the artifact from archiva to /opt/tomcat_petclinic/webapps
-
Archiva - Browse to http://localhost:18081/
- admin :: admin1
- snapshots :: snapshots1
- deploy :: deploy1
-
Sonarqube - Browse to http://localhost:19000/
- admin :: admin
-
Tomcat - Browse to http://localhost:18082/
- petclinic is deployed to http://localhost:18082/springboot-petclinic-1.4.1/
-
Selenium - Browse to http://localhost:14444/
- Chrome and Firefox are provided
- Each run as a Jenkins to test searching for an Owner in the Petclinic app.
- A screenshot is captured for each browser in /var/lib/jenkins/jobs/selenium-chrome-petclinic-test/workspace/checkup_chrome.png and /var/lib/jenkins/jobs/selenium-firefox-petclinic-test/workspace/checkup_firefox.png
-
Hygieia - Browse to http://localhost:13000/
- create a user and dashboard, the collectors are aware of the different components
Modify /home/vagrant/dashboard.properties to point to your existing servers and then restart all collectors by running: cd /etc/systemd/system; sudo systemctl restart hygieia-*
Authors: drew@liatrio.com
