Skip to content

catenax-ng/product-knowledge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Catena-X Agents Kit Source Repository

This is a MonoRepo hosting or linking all the module and infrastructure codes related to the Catena-X Agents Kit.

Documentation

With regard to any global, architectural and usage documentation, we refer to our web page. All sources are locally documented using markdown and language-specific code comments.

Repository Linking and Initialisation

Some modules may be maintained in separate repositories (currently: a patched AASWC client).

They are linked as git submodules so you should be sure to run the following command after cloning this repo:

git submodule update --init

You may open this repository in a Github Codespace. Be sure to use a "4-core" or bigger machine type since some of the docker images need a certain amount of memory and horsepower.

Modules

These are the further sub-modules of the Agents Kit

  • Dataspace hosts reference implementations of the Gaia-X/IDS Dataspace extensions (Agents) for both Providers and Consumers, such as AAS-Bridge and Data Virtualization Engines.
  • Infrastructure hosts "Infrastructure as Code" manifests and resources for easy deployment of above artifacts including a sample dataspace.

Carved out external repositories

Obsolete submodules:

  • UX hosted User Experience components and a sample portal/development environment for developing and executing semantically-driven logic and apps.

Besides the markdown documentation including this file, we have some helper folders

  • Github contains all workflows and CI/CD processes.
    • Github CI/CD Workflow builds and unit-tests all artifacts, checks source and binary code quality using CodeQL and publishes the results (only main branch).
    • Github KICS Workflow checks Docker Buildfiles and Helm Charts for the most common vulnerabilities.
  • Maven contains bootstrap code for the main build system.

And some related scripts and settings

  • Git Settings
    • Attributes has large-file settings for binary artifacts.
    • Ignore excludes certain build artifacts from versioning.
  • Maven Scripts
  • Postman Collections and Environments
    • Knowledge Agents contains API interactions and samples for all REST-based interfaces of the KA architecture. Includes integration test steps. Excludes conformity asessment methods. Should be combined with one of the following environments
    • Localhost contains API endpoints and secrets for interacting with the local deployment of the sample dataspace.
    • Development contains API endpoints and (emptied) secrets for interacting with the development deployment of the sample dataspace. Please contact the CX association to get the actual secrets.
    • Localhost contains API endpoints and (emptied) secrets for interacting with the integration deployment of the sample dataspace. Please contact the CX association to get the actual secrets.

Build

Environment Variables

To interact with the required package and container registries, the following environment variables should be set

export GITHUB_ACTOR=
export GITHUB_TOKEN=

Prepare

A suitable conda environment named knowledgeagents can be created and activated with:

conda env create -f environment.yaml
conda activate knowledgeagents

Compile

To build all compilation artifacts (without tests), you can invoke

./mvnw -s settings.xml install -DskipTests

Test

To build all compilation artifacts (including tests), you can invoke

./mvnw -s settings.xml install

Package and Deploy

To bundle all deployment artifacts for a particular platform (currently supported: linux/amd64 and linux/arm64), you can invoke

./mvnw -s settings.xml package -Pwith-docker-image -Dplatform=linux/amd64

To publish the artifacts, choose

./mvnw -s settings.xml deploy -Pwith-docker-image -Dplatform=linux/amd64

Containerizing, Registering and Deployment

Knowledge Agents builds all containers using docker technology. The docker buildfiles are part of the respective source code repositories.

Containers

To build all artifacts (including compilation artifacts, tests and container images with the default target platform linux/amd64), you can invoke

./mvnw -s settings.xml install -Pwith-docker-image

To build all artifacts especially for target platform linux/arm64, use this command

./mvnw -s settings.xml install -Dplatform=linux/arm64 -Pwith-docker-image

Registry

To register all artifacts (including compilation artifacts, tests and container images) into their respective registries, you can invoke

./mvnw -s settings.xml deploy -Pwith-docker-image

Deployment

Agents KIT containers will be deployed very individually. We provide a sample environment (dataspace consisting of three business partners) using docker-compose (for local deployment) and helm (for cloud/cluster deployment) technology. The docker compose files and helm charts can be found in the infrastructure folder.

Running Against the Services and APIs / Integration Tests

You may use/export/fork this online Postman Workspace/Collecion a copy of which is embedded here. It contains collection of sample interactions with the various sub-products in several environments (e.g. local, development and integration) and tailored to the sample dataspace. Also integrated there is a folder with the integrations tests which are scripted and consective Postman actions which test features and state changes within the target environment. This is used in the Github Integration Test Workflow.

Packages

 
 
 

Languages

  • Python 65.7%
  • Shell 16.1%
  • Perl 12.3%
  • Dockerfile 5.6%
  • Other 0.3%