Skip to content

mike4263/camel-amq-poc

Repository files navigation

camel-amq-poc

Installation on OpenShift

This assumes that the Red Hat Streams for Apache Kafka operator is already installed

Go to the Administrator perspective

img.png

Select the Operators

img_6.png

Click Kafka img_7.png

Deploy a Kafka cluster

Select Current namespaces only img_8.png

Then "Create Kafka" img_9.png

Keep all the settings as default and click "Create" on the bottom

This will take a couple minutes to properly initialize

img_10.png

Scroll to the right and click Kafka Topic

img_11.png

Click the Create KafkaTopic button

img_12.png

Keep all settings as default and click Create at bottom

Return to the Developer perspective

img_13.png

Click +Add button

img_14.png

Select Import from Git

img_15.png

Enter the URL: https://github.com/mike4263/camel-amq-poc.git img.png

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) img_3.png

Create a new VistA application group img_16.png

Enter Vista as the of the application group and vista-app as the name of the resources:

img_17.png

Select "Deployment" as the Resource Type img_2.png

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

img_5.png

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.

img.png

Click View logs

img_1.png

If everything worked properly, you should see the following in the logs

img_20.png

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.

About

Generated by code.quarkus.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published