diff --git a/modules/kogito-data-index-ephemeral/prod/added/kogito-app-launch.sh b/modules/kogito-data-index-ephemeral/prod/added/kogito-app-launch.sh deleted file mode 100644 index aa15cda21..000000000 --- a/modules/kogito-data-index-ephemeral/prod/added/kogito-app-launch.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - - -#import -source "${KOGITO_HOME}"/launch/logging.sh - -if [ "${SCRIPT_DEBUG}" = "true" ] ; then - set -x - SHOW_JVM_SETTINGS="-XshowSettings:properties" - log_info "Script debugging is enabled, allowing bash commands and their arguments to be printed as they are executed" - log_info "JVM settings debug is enabled." - printenv -fi - -# Configuration scripts -# Any configuration script that needs to run on image startup must be added here. -CONFIGURE_SCRIPTS=( - "${KOGITO_HOME}"/launch/kogito-data-index-common.sh - "${KOGITO_HOME}"/launch/configure-custom-truststore.sh -) -source "${KOGITO_HOME}"/launch/configure.sh -############################################# - -DYNAMIC_RESOURCES_OPTS="$(${JBOSS_CONTAINER_JAVA_JVM_MODULE}/java-default-options) $(${JBOSS_CONTAINER_JAVA_JVM_MODULE}/debug-options)" - -# shellcheck disable=SC2086 -exec java ${SHOW_JVM_SETTINGS} ${DYNAMIC_RESOURCES_OPTS} ${JAVA_OPTIONS} ${KOGITO_DATA_INDEX_PROPS} ${CUSTOM_TRUSTSTORE_ARGS} \ - -Djava.library.path="${KOGITO_HOME}"/lib \ - -Dquarkus.http.host=0.0.0.0 \ - -Dquarkus.http.port=8080 \ - -jar "${KOGITO_HOME}"/bin/quarkus-app/quarkus-run.jar - diff --git a/modules/kogito-data-index-ephemeral/prod/configure b/modules/kogito-data-index-ephemeral/prod/configure deleted file mode 100644 index d24e68683..000000000 --- a/modules/kogito-data-index-ephemeral/prod/configure +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -set -e - -SOURCES_DIR=/tmp/artifacts -SCRIPT_DIR=$(dirname "${0}") -ADDED_DIR="${SCRIPT_DIR}"/added - -mkdir -p "${KOGITO_HOME}"/bin/quarkus-app -unzip "${SOURCES_DIR}"/data-index-service-inmemory-image-build.zip -d "${KOGITO_HOME}"/bin/quarkus-app/ - -cp -v "${ADDED_DIR}"/kogito-app-launch.sh "${KOGITO_HOME}" -chmod +x-w "${KOGITO_HOME}"/kogito-app-launch.sh - diff --git a/modules/kogito-data-index-ephemeral/prod/module.yaml b/modules/kogito-data-index-ephemeral/prod/module.yaml deleted file mode 100644 index f0c0a8ddc..000000000 --- a/modules/kogito-data-index-ephemeral/prod/module.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -schema_version: 1 -name: org.kie.kogito.dataindex.prod.ephemeral -version: "1.30.0" - -artifacts: - # data-index-service-inmemory-1.24.0.Final-redhat-00011-image-build.zip -- name: data-index-service-inmemory-image-build.zip - md5: 439ecd6255b9c204e3808e5a35a58463 - -execute: - - script: configure - -packages: - install: - - pam - diff --git a/modules/kogito-swf/builder/runtime/osl/configure.sh b/modules/kogito-swf/builder/runtime/osl/configure.sh deleted file mode 100644 index 70c258fa6..000000000 --- a/modules/kogito-swf/builder/runtime/osl/configure.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -set -e - -SOURCES_DIR=/tmp/artifacts - -mkdir -p "${KOGITO_HOME}"/.m2/repository - -# Unzip Quarkus app and Maven repository -unzip "${SOURCES_DIR}"/kogito-builder-quarkus-app-image-build.zip -d "${KOGITO_HOME}" -unzip "${SOURCES_DIR}"/kogito-builder-maven-repository-image-build.zip -d "${KOGITO_HOME}"/.m2/repository - -chown -R 1001:0 "${KOGITO_HOME}" -chmod -R ug+rwX "${KOGITO_HOME}" diff --git a/modules/kogito-swf/builder/runtime/osl/module.yaml b/modules/kogito-swf/builder/runtime/osl/module.yaml deleted file mode 100644 index b126715ce..000000000 --- a/modules/kogito-swf/builder/runtime/osl/module.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -schema_version: 1 -name: org.kie.kogito.swf.builder.runtime.osl -version: "1.30.0" -description: "OpenShift Serverless Logic builder module with required extensions" - -artifacts: - - name: kogito-builder-quarkus-app-image-build.zip - # kogito-builder-quarkus-app-1.38.0.Final-redhat-00002-image-build.zip - md5: e55ce232900dc6ea089813eb8ffe8d93 - - name: kogito-builder-maven-repository-image-build.zip - # kogito-builder-maven-repository-1.38.0.Final-redhat-00002-image-build.zip - md5: 1489b401aa0356ac79fd3aa0e62bacf3 - -execute: - - script: configure.sh diff --git a/modules/kogito-swf/devmode/runtime/osl/configure.sh b/modules/kogito-swf/devmode/runtime/osl/configure.sh deleted file mode 100644 index a72caf961..000000000 --- a/modules/kogito-swf/devmode/runtime/osl/configure.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -set -e - -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -SOURCES_DIR=/tmp/artifacts - -# Unzip Quarkus app and Maven repository -unzip "${SOURCES_DIR}"/kogito-devmode-quarkus-app-image-build.zip -d "${KOGITO_HOME}" -unzip "${SOURCES_DIR}"/kogito-devmode-maven-repository-image-build.zip -d "${KOGITO_HOME}"/.m2/repository - -chown -R 1001:0 "${KOGITO_HOME}" -chmod -R ug+rwX "${KOGITO_HOME}" diff --git a/modules/kogito-swf/devmode/runtime/osl/module.yaml b/modules/kogito-swf/devmode/runtime/osl/module.yaml deleted file mode 100644 index 6da3562f7..000000000 --- a/modules/kogito-swf/devmode/runtime/osl/module.yaml +++ /dev/null @@ -1,50 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -schema_version: 1 -name: org.kie.kogito.swf.devmode.runtime.osl -version: "1.30.0" -description: "OpenShift Serverless Logic devmode with required extensions" - -envs: - - name: QUARKUS_KOGITO_DEVSERVICES_ENABLED - description: Whether to enable Kogito Devservices or not. Default to "false" since Data Index needs Docker. - value: "false" - - name: QUARKUS_DEVSERVICES_ENABLED - description: Whether to enable Quarkus Devservices or not. Default to "false" since the Kafka broker needs Docker. - value: "false" - - name: QUARKUS_KUBERNETES_CLIENT_DEVSERVICES_ENABLED - description: Whether to enable Kogito Devservices or not. Default to "false" since Kubernetes objects are managed by the Kogito Serverless Operator. - value: "false" - - name: QUARKUS_CONTINUOUS_TESTING - description: Whether to enable Quarkus continous testing on DevMode or not. Default to "disabled". - value: "disabled" - - name: KOGITO_CODEGEN_PROCESS_FAILONERROR - description: Boolean flag that will prevent Dev Mode to crash if the provided workflow is wrong. - value: "false" - -artifacts: - - name: kogito-devmode-quarkus-app-image-build.zip - # kogito-devmode-quarkus-app-1.38.0.Final-redhat-00001-image-build.zip - md5: c67fa5b0c78688023a5ac39877415dc7 - - name: kogito-devmode-maven-repository-image-build.zip - # kogito-devmode-maven-repository-1.38.0.Final-redhat-00001-image-build.zip - md5: 5452062f247963d2ef7dbc35fbe29c3b - -execute: - - script: configure.sh