Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-3387

Serve generated protobuf files in a static endpoint for Quarkus/SpringBoot applications

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 0.16.0
    • 0.15.0
    • Core Engine
    • None
    • 2020 Week 37-39 (from Sep 7)

    Description

      The generated protobuf files play a very important role in the Kogito platform. Each domain data from a custom Kogito service is generated as a protobuf when using the persistence add-on. These files need to be read by the Data Index in runtime.

      On cloud environments, we leverage from the Kogito Operator to mount these files to a deployed Data Index instance. To do that, the operator needs to read the files from a given deployed custom Kogito service and mount to a deployed Data Index.

      Today we read these files from the container's file system using shell script during the container initialization. This smells a anti-pattern since we are using a script inside the image to do that for us: expose the generated protobuf files.

      Would be more interesting if the deployed service could serve these files through HTTP, so the operator would fetch them and update the Data Index volume.

      This JIRA is to add these files to the META-INF/resources directory of the custom Kogito service, so the files would be served.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-zanini Ricardo Zanini Fernandes
              rhn-support-zanini Ricardo Zanini Fernandes
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: