-
Enhancement
-
Resolution: Won't Do
-
Major
-
0.16.0
-
None
-
False
-
False
-
Undefined
-
---
-
---
-
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}"
}