This assumes that the Red Hat Streams for Apache Kafka operator is already installed
Go to the Administrator perspective
Select the Operators
Deploy a Kafka cluster
Select Current namespaces only
Keep all the settings as default and click "Create" on the bottom
This will take a couple minutes to properly initialize
Scroll to the right and click Kafka Topic
Click the Create KafkaTopic button
Keep all settings as default and click Create at bottom
Return to the Developer perspective
Click +Add button
Select Import from Git
Enter the URL: https://github.com/mike4263/camel-amq-poc.git
It should auto detect the Builder Image
NOTE: OpenShift 4.13 and older may specify a builder image that does not work properly with quarkus. (bug)
Create a new VistA application group
Enter Vista as the of the application group and vista-app as the name of the resources:
Select "Deployment" as the Resource Type
Scroll down to the bottom. Click Deployment and enter the environment variables:
Env Variable | Name |
---|---|
BOOTSTRAP_URL | my-cluster-kafka-bootstrap:9092 |
QUARKUS_PROFILE | prod |
Click Create
Click on the lower left circle to watch the build process
The build will take a couple minutes. After the build is complete, click Topology on the left to return to the topology overview.
Click the blue ring to pull up the side pane.
Click View logs
If everything worked properly, you should see the following in the logs
If your application failed with the error:
invoking custom S2I script
Error: Unable to access jarfile /deployments/quarkus-app/quarkus-run.jar
Open up your oc
client and modify your BuildConfig as follows:
oc project vista
oc set env bc/vista-app S2I_SOURCE_DEPLOYMENTS_FILTER=""
oc start-build bc/vista-app
Return to the Topology view and click the circle to view the side pane.