Skip to content

Commit

Permalink
kie-issues#1560: Migrate Tasks Console pages to the Management Consol…
Browse files Browse the repository at this point in the history
…e and remove the Task Console (#2700)
  • Loading branch information
thiagoelg authored Oct 24, 2024
1 parent fa0658b commit 864c086
Show file tree
Hide file tree
Showing 98 changed files with 258 additions and 6,571 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ To allow a quick setup of all services required to run this demo, we provide a d
- PgAdmin
- Kogito Example Service (Only available if the example has been compiled using the `container` mvn profile eg: `mvn clean package -Dcontainer`)
- Kogito Management Console
- Kogito Task Console
- Keycloak

The docker compose template provides three profiles to enable starting only the set of services you want to use. The profiles are:

- **infra**: Starts only the minimal infrastructure to run the example (Postgresql, pgadmin, Kogito Data Index)
- **example**: Starts the services in _infra_ profile and the Kogito Example Service. Requires the example to be compiled using the `container` mvn profile eg: `mvn clean package -Dcontainer`.
- **full** (default): includes all the above and also starts the **Management Console**, **Task Console** and a **Keycloak** to handle the consoles authentication. Requires the example to be compiled using the `container` mvn profile eg: `mvn clean package -Dcontainer`.
- **full** (default): includes all the above and also starts the **Management Console** and **Keycloak** to handle the console authentication. Requires the example to be compiled using the `container` mvn profile eg: `mvn clean package -Dcontainer`.

> NOTE: In order to use it, please ensure you have Docker Compose installed on your machine, otherwise follow the instructions available
> in [here](https://docs.docker.com/compose/install/).
Expand All @@ -34,7 +33,6 @@ Once the services are started (depending on the profile), the following ports wi
- PgAdmin: 8055
- Kogito Example Service: 8080
- Kogito Management Console: 8280
- Kogito Task Console: 8380
- Keycloak: 8480

## Stopping and removing volume data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,14 @@ services:
depends_on:
jbpm-compact-architecture-example-service:
condition: service_started
# keycloak:
# condition: service_healthy
volumes:
- ./svg/:/home/kogito/data/svg/
environment:
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_ENV_MODE: "DEV"
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_DATA_INDEX_ENDPOINT: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8080/graphql

task-console:
container_name: task-console
image: ${KOGITO_TASK_CONSOLE_IMAGE}
profiles: ["full"]
ports:
- 8380:8080
depends_on:
jbpm-compact-architecture-example-service:
condition: service_started
keycloak:
condition: service_healthy
environment:
RUNTIME_TOOLS_TASK_CONSOLE_KOGITO_ENV_MODE: "PROD"
RUNTIME_TOOLS_TASK_CONSOLE_DATA_INDEX_ENDPOINT: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8080/graphql
KOGITO_CONSOLES_KEYCLOAK_HEALTH_CHECK_URL: http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration
KOGITO_CONSOLES_KEYCLOAK_URL: http://localhost:8480/auth
KOGITO_CONSOLES_KEYCLOAK_REALM: kogito
KOGITO_CONSOLES_KEYCLOAK_CLIENT_ID: kogito-console-quarkus
# KOGITO_CONSOLES_KEYCLOAK_HEALTH_CHECK_URL: http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration
# KOGITO_CONSOLES_KEYCLOAK_URL: http://localhost:8480/auth
# KOGITO_CONSOLES_KEYCLOAK_REALM: kogito
# KOGITO_CONSOLES_KEYCLOAK_CLIENT_ID: kogito-console-quarkus
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ echo "Script requires your Kogito Example to be compiled"

PROJECT_VERSION=$(cd ../ && mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
KOGITO_MANAGEMENT_CONSOLE_IMAGE=$(cd ../ && mvn help:evaluate -Dexpression=kogito.management-console.image -q -DforceStdout)
KOGITO_TASK_CONSOLE_IMAGE=$(cd ../ && mvn help:evaluate -Dexpression=kogito.task-console.image -q -DforceStdout)


if [ -n "$1" ]; then
if [[ ("$1" == "full") || ("$1" == "infra") || ("$1" == "example")]];
Expand All @@ -17,14 +15,13 @@ if [ -n "$1" ]; then
echo "Unknown docker profile '$1'. The supported profiles are:"
echo "* 'infra': Use this profile to start only the minimum infrastructure to run the example (postgresql, data-index & jobs-service)."
echo "* 'example': Use this profile to start the example infrastructure and the kogito-example service. Requires the example to be compiled using the 'container' profile (-Pcontainer)"
echo "* 'full' (default): Starts full example setup, including infrastructure (database, data-index & jobs-service), the kogito-example-service container and the runtime consoles (management-console, task-console & keycloak). Requires the example to be compiled using the 'container' profile (-Pcontainer)"
echo "* 'full' (default): Starts full example setup, including infrastructure (database, data-index & jobs-service), the kogito-example-service container and the runtime consoles (management-console & keycloak). Requires the example to be compiled using the 'container' profile (-Pcontainer)"
exit 1;
fi
fi

echo "PROJECT_VERSION=${PROJECT_VERSION}" > ".env"
echo "KOGITO_MANAGEMENT_CONSOLE_IMAGE=${KOGITO_MANAGEMENT_CONSOLE_IMAGE}" >> ".env"
echo "KOGITO_TASK_CONSOLE_IMAGE=${KOGITO_TASK_CONSOLE_IMAGE}" >> ".env"
echo "COMPOSE_PROFILES='${PROFILE}'" >> ".env"

if [ "$(uname)" == "Darwin" ]; then
Expand Down
9 changes: 0 additions & 9 deletions examples/jbpm-compact-architecture-example/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,17 @@ const {
env: { kogitoManagementConsole: kogitoManagementConsoleImageEnv },
} = require("@kie-tools/kogito-management-console/env");

const {
env: { kogitoTaskConsole: kogitoTaskConsoleImageEnv },
} = require("@kie-tools/kogito-task-console/env");

module.exports = composeEnv([require("@kie-tools/root-env/env")], {
vars: varsWithName({
JBPM_COMPACT_ARCHITECTURE_EXAMPLE__managementConsoleImage: {
default: `${kogitoManagementConsoleImageEnv.registry}/${kogitoManagementConsoleImageEnv.account}/${kogitoManagementConsoleImageEnv.name}:${kogitoManagementConsoleImageEnv.buildTag}`,
description: "The image for the Kogito Management Console.",
},
JBPM_COMPACT_ARCHITECTURE_EXAMPLE__taskConsoleImage: {
default: `${kogitoTaskConsoleImageEnv.registry}/${kogitoTaskConsoleImageEnv.account}/${kogitoTaskConsoleImageEnv.name}:${kogitoTaskConsoleImageEnv.buildTag}`,
description: "The image for the Kogito Task Console.",
},
}),
get env() {
return {
jbpmCompactArchitectureExample: {
kogitoManagementConsoleImage: getOrDefault(this.vars.JBPM_COMPACT_ARCHITECTURE_EXAMPLE__managementConsoleImage),
kogitoTaskConsoleImage: getOrDefault(this.vars.JBPM_COMPACT_ARCHITECTURE_EXAMPLE__taskConsoleImage),
version: require("../package.json").version,
},
};
Expand Down
5 changes: 0 additions & 5 deletions examples/jbpm-compact-architecture-example/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,3 @@ setPomProperty({
key: "kogito.management-console.image",
value: env.jbpmCompactArchitectureExample.kogitoManagementConsoleImage,
});

setPomProperty({
key: "kogito.task-console.image",
value: env.jbpmCompactArchitectureExample.kogitoTaskConsoleImage,
});
1 change: 0 additions & 1 deletion examples/jbpm-compact-architecture-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
},
"devDependencies": {
"@kie-tools/kogito-management-console": "workspace:*",
"@kie-tools/kogito-task-console": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"run-script-os": "^1.1.6"
},
Expand Down
51 changes: 0 additions & 51 deletions packages/kogito-task-console/Containerfile

This file was deleted.

138 changes: 0 additions & 138 deletions packages/kogito-task-console/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions packages/kogito-task-console/entrypoint.sh

This file was deleted.

Loading

0 comments on commit 864c086

Please sign in to comment.