Skip to content

Commit

Permalink
Remove management console
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmotta committed Jan 8, 2025
1 parent f68ea2a commit 89e543d
Show file tree
Hide file tree
Showing 39 changed files with 6 additions and 2,524 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ To allow a quick setup of all services required to run this demo, we provide a d
- Grafana
- Keycloak
- Kogito Data Index
- Kogito Management Console

This setup ensures that all services are connected using the default configuration as well as provisioning the Travel Agency dashboard to Grafana.

Expand Down Expand Up @@ -39,7 +38,6 @@ In order to use it, please ensure you have Docker Compose installed on your mach
- Grafana: 3000
- Keycloak: 8480
- Data Index: 8180
- Management Console: 8280

To access the Grafana dashboard, simply navigate to http://localhost:3000 and login using the default username 'admin' and password 'admin'.
Prometheus will also be available on http://localhost:9090, no authentication is required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,3 @@ services:
QUARKUS_HTTP_CORS_ORIGINS: "/.*/"
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
KOGITO_DATA_INDEX_PROPS: -Dkogito.protobuf.folder=/home/kogito/data/protobufs/

management-console:
container_name: management-console
image: quay.io/kiegroup/kogito-management-console:${KOGITO_VERSION}
ports:
- 8280:8080
depends_on:
data-index:
condition: service_started
volumes:
- ./svg/:/home/kogito/data/svg/
environment:
KOGITO_DATAINDEX_HTTP_URL: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8180/graphql
KOGITO_MANAGEMENT_CONSOLE_PROPS: -Dkogito.consoles.keycloak.config.url=http://localhost:8480/auth -Dkogito.consoles.keycloak.config.health-check-url=http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration -Dkogito.svg.folder.path=/home/kogito/data/svg
QUARKUS_HTTP_CORS_ORIGINS: "/.*/"
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ the response with the visa processing outcome - approved or rejected.
* Create or import UI components using **Kogito Data Index Service**
* Add metrics support for processes and decisions
* Create dashboard based on metrics
* Connect the **Kogito Management Console** to the **Kogito Data Index Service**


## Data model

Expand Down Expand Up @@ -151,7 +149,6 @@ Once all services bootstrap, the following ports will be assigned on your local
- Kafka: 9092
- Data Index: 8180
- Keycloak server: 8480
- Management Console: 8280

> **_NOTE:_** This step requires the project to be compiled, please consider running a ```mvn clean install``` command on the project root before running the ```startServices.sh``` script for the first time or any time you modify the project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ Once all services bootstrap, the following ports will be assigned on your local
- Kafka: 9092
- Data Index: 8180
- Keycloak server: 8480
- Management Console: 8280

> **_NOTE:_** This step requires the project to be compiled, please consider running a ```mvn clean install``` command on the project root before running the ```startServices.sh``` script for the first time or any time you modify the project.
Expand Down
4 changes: 0 additions & 4 deletions kogito-quarkus-examples/ocp-tryout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Make sure you meet the [prerequisites](#prerequisites) and then start [here](#in
### Available Kogito services
Installation from pre-build images
- [Data Index](https://docs.jboss.org/kogito/release/1.15.0/html_single/#con-data-index-service_kogito-configuring)
- [Management console](https://docs.jboss.org/kogito/release/1.15.0/html_single/#con-management-console_kogito-developing-process-services)
- [Jobs service](https://docs.jboss.org/kogito/release/latest/html_single/#con-jobs-service_kogito-configuring)

## Architecture
Expand Down Expand Up @@ -83,8 +82,6 @@ All configuration required to make those connections as well as initializations
- `kogito.dataindex.httpurl` - the dataindex url, protocol: http
- `kogito.dataindex.httpurl.with.graphql` - the dataindex graphql url
- `kogito.dataindex.wsurl` - the dataindex url, protocol: ws
### Kogito Management Console Configurations
- `kogito.managementconsole.props` - command line properties for the management console
### Kogito Job Service Configurations
- `kogito.jobsservice.props` - command line properties for the job service
Expand All @@ -99,7 +96,6 @@ if marked `-` then namespace defaults are applied
|**namespace default per deployment/statefulSet**|10m|64Mi|1|750Mi|
|keycloak|-|-|-|-|
|kogito-data-index-infinispan|-|-|-|500Mi|
|kogito-management-console|-|-|-|500Mi|
|kogito-jobs-service|-|-|-|500Mi|
|kogito-travel-agency-travels-jvm|-|-|-|500Mi|
|kogito-travel-agency-visas-jvm|-|-|-|500Mi|
Expand Down
1 change: 0 additions & 1 deletion kogito-quarkus-examples/ocp-tryout/installer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ INFINISPAN=N
KAFKA=N
KEYCLOAK=N
KOGITO_DATA_INDEX=N
KOGITO_MANAGEMENT_CONSOLE=N
KOGITO_JOBS_SERVICE=N
TEST_APP=N

5 changes: 2 additions & 3 deletions kogito-quarkus-examples/ocp-tryout/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


# firstly, any Kogito unrelated infrastructure like infinispan, kafka, etc. is installed
# secondly, any Kogito services like data-index, management console, etc. is installed
# secondly, any Kogito services like data-index, etc. is installed
# thirdly, the application to try out is installed

source installer.properties
Expand All @@ -29,7 +29,7 @@ source common-functions.sh
action=install

components=(SHARED_CONFIG INFINISPAN KAFKA KEYCLOAK \
KOGITO_DATA_INDEX KOGITO_MANAGEMENT_CONSOLE KOGITO_JOBS_SERVICE \
KOGITO_DATA_INDEX KOGITO_JOBS_SERVICE \
TEST_APP)
# override the installer properties configuration if needed
function overrideEnvVariables(){
Expand Down Expand Up @@ -110,7 +110,6 @@ function install(){
dbType="infinispan"

componentAction "${KOGITO_DATA_INDEX}" "kogito-data-index" "${dbType}"
componentAction "${KOGITO_MANAGEMENT_CONSOLE}" "kogito-management-console"
componentAction "${KOGITO_JOBS_SERVICE}" "kogito-jobs-service" "${dbType}"

componentAction "${TEST_APP}" "testapp"
Expand Down
4 changes: 1 addition & 3 deletions kogito-quarkus-examples/ocp-tryout/keycloak/keycloak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ action=$1

# NOTE: if need to update kogito_realm.json, edit content of kogito-realm-orig.json here
function updateClientRedirectUrls(){
mngConsole=\"http://kogito-management-console-$(getProjectName).$(getClusterAppsHostname)/*\"
additionalRedirectUris=["${mngConsole}"]
(jq '(.clients[] | select(.clientId=="kogito-console-quarkus") | .redirectUris) |= . + '${additionalRedirectUris} kogito-realm-orig.json) > kogito-realm.json
(jq '(.clients[] | select(.clientId=="kogito-console-quarkus") | .redirectUris) |= . + ' kogito-realm-orig.json) > kogito-realm.json
}
updateClientRedirectUrls

Expand Down

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions kogito-quarkus-examples/ocp-tryout/kogito-shared/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ There is one config map per infrastructure component.
- `kogito.dataindex.httpurl` - the dataindex url, protocol: http
- `kogito.dataindex.httpurl.with.graphql` - the dataindex graphql url
- `kogito.dataindex.wsurl` - the dataindex url, protocol: ws
#### Kogito Management Console Config
- `kogito.managementconsole.props` - command line properties for the management console
#### Kogito Job Service Config
- `kogito.jobsservice.props` - command line properties for the job service
3 changes: 1 addition & 2 deletions kogito-quarkus-examples/ocp-tryout/uninstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source common-functions.sh
action=uninstall

components=(SHARED_CONFIG INFINISPAN KAFKA KEYCLOAK \
KOGITO_DATA_INDEX KOGITO_MANAGEMENT_CONSOLE KOGITO_JOBS_SERVICE \
KOGITO_DATA_INDEX KOGITO_JOBS_SERVICE \
TEST_APP)
# override the installer properties configuration if needed
function overrideEnvVariables(){
Expand Down Expand Up @@ -73,7 +73,6 @@ function uninstall(){
fi

componentAction "${KOGITO_DATA_INDEX}" "kogito-data-index" "${dbType}"
componentAction "${KOGITO_MANAGEMENT_CONSOLE}" "kogito-management-console"
componentAction "${KOGITO_JOBS_SERVICE}" "kogito-jobs-service" "${dbType}"

componentAction "${INFINISPAN}" "infinispan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ mvn clean package quarkus:dev -Pdevelopment
The Development Mode will embed all the needed Infrastructure Services (PostgreSQL, Data-Index & Jobs Service) and won't
require any extra step.

The `development` profile includes the **Runtime Tools Quarkus Extension** that exposes a new section in the **Quarkus Dev-UI**
with the **Management Console** functionalities. **Quarkus Dev-UI** is available at http://localhost:8080/q/dev

> **_NOTE:_** For more information about how to work with Kogito Runtime Tools Quarkus Extension, please refer to the [Kogito Documentation](https://docs.kogito.kie.org/latest/html_single/#con-runtime-tools-dev-ui_kogito-developing-process-services) page.
### Executing an instance of the Simple Process
Expand Down
Loading

0 comments on commit 89e543d

Please sign in to comment.