This method presents the sample with a Jenkins-based devOps pipeline.
- Install a Git client to obtain the sample code.
- Install Maven and a Java 8 JDK if you wish to build changes locally.
- Install a Docker engine if you wish to fully test changes locally.
- Fork the WASdev/sample.microservicebuilder.* projects into your own Git organisation.
- Install IBM Spectrum Conductor for Containers - see the User Guide in the 'Quick Links' section of the homepage.
- Install the Microservice Builder fabric - these are various services that run on top of Kubernetes.
- Install the Microservice Builder ELK Sample - Elasticsearch, Logstash, and Kibana stack used for monitoring metrics.
- Install the Microservice Builder pipeline, adding your organisation organisation to the list of GitHub organisations that Jenkins will monitor.
- Check that the sample repositories have built and deployed correctly.
- Use
kubectl get ing
to determine the address of theweb-application-ingress
. Open this location in a web browser to access the sample.
Once you've made changes to the source code you'll want to rebuild and redeploy the new modules. See this topic for some notes about redeployment. In general, make your changes in a branch and use git push
to trigger the build pipeline once you have webhooks set up.