IBM Cloud Pak for Applications helps you modernize existing applications and develop new cloud-native applications that can quickly deliver value. This code pattern demonstrates the Accelerators for Teams feature of IBM Cloud Pak for Applications by developing a cloud-native application and deploying it on Red Hat OpenShift using CI/CD features.
Enterprises are moving towards cloud-native development for a host of benefits. However, to realize the benefits of cloud-native development, enterprises must overcome the challenges of retaining enterprise governance and the cost of building new skills and transforming end-to-end development practices.
The Accelerator for Teams for cloud-native solutions are designed to speed up the development of cloud-native applications by providing an end-to-end journey from a business problem to a production application. It provides enterprise governance by bringing together application stacks, integrated DevOps, and a choice of developer tools. Cloud-native services are even faster because Accelerators for Teams automatically generates the development projects, services, and configuration settings that can deploy your application to a Red Hat OpenShift cluster. All your development teams need to do is code your business logic.
Developer experience for IDEs is provided by Codewind, which is used for creating, building, running, and profiling applications. Tekton pipelines provide consistent, managed, and governed CI/CD processes that react to repository events that occur during code development.
In this code pattern, you will develop a simple Java weather application with a simple interface that accepts a name or latitude/longitude of a location and provides basic weather details of the location using Open Weather API.
When you have completed this code pattern, you will understand how to:
- Build a simple Java application using Codewind on Eclipse
- Use Tekton pipelines to deploy the Java application on OpenShift using CP4A
- User installs Codewind and adds the stack hub provided by IBM Cloud Pak for Applications on an IBM managed OpenShift cluster.
- User develops an application using a project template that is available in the added stack hub.
- User pushes the developed application code to a GitHub repository.
- User configures Tekton Pipeline and defines GitHub Webhook on IBM Cloud Pak for Applications.
- Tekton pipeline builds and deploys the application to OpenShift cluster whenever there is code change event in the GitHub repository.
- User accesses the deployed application.
Find the detailed steps for this pattern in the readme file. The steps will show you how to:
- Install Codewind and Appsody.
- Add project templates to Codewind.
- Create a project in Codewind.
- Get API Key from Open Weather API.
- Run the application locally.
- Prepare application to be deployed to IBM Cloud Pak for Applications.
- Push application code to GitHub repository.
- Create token for your Github.
- Configure and execute Tekton Pipeline.
- Access the deployed application.