tree: 616783c87bb07f50c36abf56ccaa2001acd7ee85 [path history] [tgz]
  1. env/
  2. Containerfile
  3. entrypoint.sh
  4. package.json
  5. README.md
packages/kogito-management-console/README.md

kogito-management-console

This package contains the Containerfile/Dockerfile and scripts to build a container image for Management Console. It also generated a JSON Schema for the env.json file, enabling it to be validated.

Additional requirements

  • docker

Build

  • Enable the image to be built:

    export KIE_TOOLS_BUILD__buildContainerImages=true
    
  • (Optional) The image name and tags can be customized by setting the following environment variables:

    export KOGITO_MANAGEMENT_CONSOLE__registry=<registry>
    export KOGITO_MANAGEMENT_CONSOLE__account=<account>
    export KOGITO_MANAGEMENT_CONSOLE__name=<image-name>
    export KOGITO_MANAGEMENT_CONSOLE__buildTag=<image-tags>
    

    Default values can be found here.

  • After optionally setting up the environment variables, run the following in the root folder of the repository to build the package:

    pnpm -F @kie-tools/runtime-tools-management-console-webapp... build:prod
    
  • Then check if the image is correctly stored:

    docker images
    

Run

  • Start up a clean container with:

    docker run -t -p 8080:8080 -i --rm docker.io/apache/incubator-kie-kogito-management-console:main
    

    Management Console will be up at http://localhost:8080

Customization

  1. Run a container with custom environment variables:

    NameDescriptionDefault
    RUNTIME_TOOLS_MANAGEMENT_CONSOLE_APP_NAMEManagement Console app name.See defaultEnvJson.js
    RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_CLIENT_IDOpenID Connect client ID for connecting to Identity Providers.See defaultEnvJson.js
    RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_DEFAULT_SCOPESOpenID Connect default scopes when connecting to Identity Providers.See defaultEnvJson.js

    Examples

    1. Using a different Client ID.

      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.

  2. Write a custom Containerfile/Dockerfile from the image:

    FROM docker.io/apache/incubator-kie-kogito-management-console:main
    
    ENV RUNTIME_TOOLS_MANAGEMENT_CONSOLE_APP_NAME=<my_app_name>
    ENV RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_CLIENT_ID=<my_client_id>
    ENV RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_DEFAULT_SCOPES=<my_default_scopes>
    
  3. Create the application from the image in OpenShift and set the deployment environment variable right from the OpenShift UI.

Custom Port

The port used internally on the container can be changed:

When building, set the KOGITO_MANAGEMENT_CONSOLE__port environment variable to any port you want, and the Containerfile will be built using that port.


Apache KIE (incubating) is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the name of Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Some of the incubating project’s releases may not be fully compliant with ASF policy. For example, releases may have incomplete or un-reviewed licensing conditions. What follows is a list of known issues the project is currently aware of (note that this list, by definition, is likely to be incomplete):

  • Hibernate, an LGPL project, is being used. Hibernate is in the process of relicensing to ASL v2
  • Some files, particularly test files, and those not supporting comments, may be missing the ASF Licensing Header

If you are planning to incorporate this work into your product/project, please be aware that you will need to conduct a thorough licensing review to determine the overall implications of including this work. For the current status of this project through the Apache Incubator visit: https://incubator.apache.org/projects/kie.html