From 7dfb1cf9b2449c15df11cbb159e0f65ea3886367 Mon Sep 17 00:00:00 2001 From: Spolti Date: Wed, 21 Jul 2021 18:08:50 -0300 Subject: [PATCH] [RHPAM-3805] - Missing kie dependencies in Kie Server ocp image (#524) Signed-off-by: spolti --- kieserver/modules/kieserver/install | 15 ++++++++++++--- kieserver/modules/kieserver/module.yaml | 2 -- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/kieserver/modules/kieserver/install b/kieserver/modules/kieserver/install index 6a64eea6..6d115916 100644 --- a/kieserver/modules/kieserver/install +++ b/kieserver/modules/kieserver/install @@ -25,7 +25,16 @@ if [[ -f "${SOURCES_DIR}/${BUSINESS_CENTRAL_DISTRIBUTION_ZIP}" ]] && [[ "${JBPM_ fi fi -chown -R jboss:root ${JBOSS_HOME} -chmod 0755 ${JBOSS_HOME} -chmod -R g+rwX ${JBOSS_HOME} +# Dir for optional deps +mkdir -p /opt/kie/dependencies/{jbpm-clustering,jbpm-kafka} + +cp ${SOURCES_DIR}/jbpm-event-emitters-kafka-*.jar /opt/kie/dependencies/jbpm-kafka/ +cp ${SOURCES_DIR}/kie-server-services-jbpm-cluster-*.jar /opt/kie/dependencies/jbpm-clustering/ + +# Necessary to permit running with a randomised UID +for dir in ${JBOSS_HOME} /opt/kie; do + chown -R jboss:root ${dir} + chmod 0755 ${dir} + chmod -R g+rwX ${dir} +done diff --git a/kieserver/modules/kieserver/module.yaml b/kieserver/modules/kieserver/module.yaml index 7be9275b..f122f2db 100644 --- a/kieserver/modules/kieserver/module.yaml +++ b/kieserver/modules/kieserver/module.yaml @@ -37,10 +37,8 @@ artifacts: # slf4j-simple-1.7.22.redhat-2.jar md5: "62cc6eeb72e2738e3acc8957ca95f37b" - name: "kie-server-services-jbpm-cluster-7.52.0.Final-redhat-00008.jar" - dest: "/opt/kie/dependencies/jbpm-clustering" md5: "f5d788195957937ef2bf9a1a58561f96" - name: "jbpm-event-emitters-kafka-7.52.0.Final-redhat-00008.jar" - dest: "/opt/kie/dependencies/jbpm-kafka" md5: "19a21e71a4f1ed33aea5e1dd682efe9c" run: user: 185