Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3680

Kogito image Runtime JVM does not consider much the env `RUNTIME_TYPE`

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.13.0.GA
    • 7.11.0.GA
    • Cloud
    • None
    • RHPAM Kogito Runtime JVM

    • False
    • False
    • CR1
    • ER1
    • Undefined
    • Hide

       

      $ cd ruleunit-springboot-example
      $ s2i build target/ -e RUNTIME_TYPE=quarkus registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 ruleunit-springboot
      $ docker run -p 8080:8080 -it ruleunit-springboot
      $ s2i build target/ -e RUNTIME_TYPE=springboot registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 ruleunit-springboot
      $ docker run -p 8080:8080 -it ruleunit-springboot
      $ cd rules-quarkus-helloworld
      $ s2i build target/ -e RUNTIME_TYPE=springboot registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 rules-quarkus
      $ docker run -p 8080:8080 -it rules-quarkus
      $ s2i build target/ -e RUNTIME_TYPE=quarkus registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 rules-quarkus
      $ docker run -p 8080:8080 -it rules-quarkus

       

      Show
        $ cd ruleunit-springboot-example $ s2i build target/ -e RUNTIME_TYPE=quarkus registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 ruleunit-springboot $ docker run -p 8080:8080 -it ruleunit-springboot $ s2i build target/ -e RUNTIME_TYPE=springboot registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 ruleunit-springboot $ docker run -p 8080:8080 -it ruleunit-springboot $ cd rules-quarkus-helloworld $ s2i build target/ -e RUNTIME_TYPE=springboot registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 rules-quarkus $ docker run -p 8080:8080 -it rules-quarkus $ s2i build target/ -e RUNTIME_TYPE=quarkus registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 rules-quarkus $ docker run -p 8080:8080 -it rules-quarkus  
    • 2021 Week 43-45 (from Oct 25), 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th), 2022 Week 02-04 (from Jan 10), 2022 Week 05-07 (from Jan 31), 2022 Week 08-10 (from Feb 21)

      `RUNTIME_TYPE` can have both `quarkus` (default) and `springboot` values.

      When running s2i build from existing binary, the fact that we set the `RUNTIME_TYPE` does not change much the result.

      And we can end up starting a spring boot app with quarkus RUNTIME_TYPE and vice versa.

      See logs which contains the output of the steps.

      This does not create much problem yet but could be in the future when we add persistence, events and so on

        1. quarkus-example.log
          90 kB
          Tristan Radisson
        2. springboot-example.log
          34 kB
          Tristan Radisson

              rhn-support-fspolti Filippe Spolti
              tradisso@redhat.com Tristan Radisson
              Tristan Radisson Tristan Radisson
              Tristan Radisson Tristan Radisson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: