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

Unify similar piece of code on Kogito Images in a common shared module

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Major
    • 1.8.0.Final
    • 0.16.0
    • None
    • False
    • False
    • Undefined
    • ---
    • ---

    Description

      Today we have some replicated code on the kogito images, e.g.:

       

      function configure_data_index_http_port() {
          local httpPort=${HTTP_PORT:-8080}
          KOGITO_DATA_INDEX_PROPS="${KOGITO_DATA_INDEX_PROPS} -Dquarkus.http.port=${httpPort}"
      }
      
      function configure_mgmt_console_http_port {
          local httpPort=${HTTP_PORT:-8080}
          KOGITO_MANAGEMENT_CONSOLE_PROPS="${KOGITO_MANAGEMENT_CONSOLE_PROPS} -Dquarkus.http.port=${httpPort}"
      }
      
      function configure_trusty_http_port {
          local httpPort=${HTTP_PORT:-8080}
          KOGITO_TRUSTY_PROPS="${KOGITO_TRUSTY_PROPS} -Dquarkus.http.port=${httpPort}"
      }
      
      

       

       

      For this we could have a common props env like KOGITO_PROPS_APPEND and use something like:

       

       

      function configure_http_port {
          local httpPort=${HTTP_PORT:-8080}
          KOGITO_PROPS_APPEND="${KOGITO_PROPS_APPEND} -Dquarkus.http.port=${httpPort}"
      }
      
      

       

       

       

       

      Attachments

        Activity

          People

            rhn-support-fspolti Filippe Spolti
            rhn-support-fspolti Filippe Spolti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: