This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 5164b61ea25 NO-ISSUE: Update `kogito-management-console` README with
new env vars (#2917)
5164b61ea25 is described below
commit 5164b61ea254e4bc15afeaeb7e9345e518dba332
Author: Thiago Lugli <[email protected]>
AuthorDate: Thu Feb 20 20:22:44 2025 -0300
NO-ISSUE: Update `kogito-management-console` README with new env vars
(#2917)
---
packages/kogito-management-console/Containerfile | 2 --
packages/kogito-management-console/README.md | 23 ++++++++---------------
2 files changed, 8 insertions(+), 17 deletions(-)
diff --git a/packages/kogito-management-console/Containerfile
b/packages/kogito-management-console/Containerfile
index 602546ac1df..6bfbf5f048c 100644
--- a/packages/kogito-management-console/Containerfile
+++ b/packages/kogito-management-console/Containerfile
@@ -19,8 +19,6 @@ FROM --platform=linux/amd64
registry.access.redhat.com/ubi9/ubi-minimal:9.5
ARG KOGITO_MANAGEMENT_CONSOLE_PORT=8080
-ENV RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_ENV_MODE="PROD"
-
COPY entrypoint.sh dist-dev/image-env-to-json-standalone
dist-dev/EnvJson.schema.json /tmp/
RUN microdnf --disableplugin=subscription-manager -y install httpd \
diff --git a/packages/kogito-management-console/README.md
b/packages/kogito-management-console/README.md
index 8c8368c8092..5862ab91ff0 100644
--- a/packages/kogito-management-console/README.md
+++ b/packages/kogito-management-console/README.md
@@ -70,25 +70,17 @@ This package contains the `Containerfile/Dockerfile` and
scripts to build a cont
[comment]: <> (//TODO: Use EnvJson.schema.json to generate this
documentation somehow.. See https://github.com/kiegroup/kie-issues/issues/16)
- | Name |
Description |
Default |
- | :----------------------------------------------------: |
:-----------------------------------------------------------: |
:-------------------------------------------------------------------------------------------:
|
- | `RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_ENV_MODE` | Env Mode: "PROD"
or "DEV". PROD enables Keycloak integration. |
"PROD" |
- | `RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_APP_NAME` |
Management Console app name. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_APP_VERSION` |
Management Console app version. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `RUNTIME_TOOLS_MANAGEMENT_CONSOLE_DATA_INDEX_ENDPOINT` | The URL
that points to the Data Index service. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `KOGITO_CONSOLES_KEYCLOAK_DISABLE_HEALTH_CHECK` |
Disables Keycloak health-check. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `KOGITO_CONSOLES_KEYCLOAK_UPDATE_TOKEN_VALIDITY` |
Update token validity in minutes. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `KOGITO_CONSOLES_KEYCLOAK_HEALTH_CHECK_URL` |
Keycloak health-check URL. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `KOGITO_CONSOLES_KEYCLOAK_REALM` |
Keycloak realm name. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `KOGITO_CONSOLES_KEYCLOAK_URL` |
Keycloak auth URL. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
- | `KOGITO_CONSOLES_KEYCLOAK_CLIENT_ID` |
Keycloak Client ID. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
+ | Name |
Description |
Default |
+ | :------------------------------------------------------: |
:------------------------------------------------------------: |
:-------------------------------------------------------------------------------------------:
|
+ | `RUNTIME_TOOLS_MANAGEMENT_CONSOLE_APP_NAME` |
Management Console app name. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
+ | `RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_CLIENT_ID` | OpenID Connect
client ID for connecting to Identity Providers. | See [ defaultEnvJson.js
](../runtime-tools-management-console-webapp/build/defaultEnvJson.js) |
### Examples
- 1. Using a different Data Index Service.
+ 1. Using a different Client ID.
```bash
- docker run -t -p 8080:8080 -e
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_DATA_INDEX_ENDPOINT=<my_value> -i --rm
docker.io/apache/incubator-kie-kogito-management-console:main
+ docker run -t -p 8080:8080 -e
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_CLIENT_ID=<my_client_id> -i --rm
docker.io/apache/incubator-kie-kogito-management-console:main
```
_NOTE: Replace `docker` with `podman` if necessary._
@@ -98,7 +90,8 @@ This package contains the `Containerfile/Dockerfile` and
scripts to build a cont
```docker
FROM docker.io/apache/incubator-kie-kogito-management-console:main
- ENV RUNTIME_TOOLS_MANAGEMENT_CONSOLE_DATA_INDEX_ENDPOINT=<my_value>
+ ENV RUNTIME_TOOLS_MANAGEMENT_CONSOLE_APP_NAME=<my_app_name>
+ ENV RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_CLIENT_ID=<my_client_id>
```
3. Create the application from the image in OpenShift and set the deployment
environment variable right from the OpenShift UI.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]