Skip to content

Repository files navigation

Orchestrator demo

This repository contains the source code of workflows we use for demo.

It also contains scripts used to build and push the image of the workflow and to generate the associated manifests in order to deploy the workflows in an OCP cluster.

Pre-requisites

Notice: The content of this repository was tested on Fedora/RHEL. Building images on MacOS with podman fails, but can be completed with docker.

Repository structure

  • Folders starting with 0*_ are the folders containing the workflow projects in Quarkus layout
  • The resources folder contains
    • the Dockerfile used to build the workflow images
    • a Deployment manifest to deploy a proxy application
    • a Route manifest to allow access to the DataIndex graphQL endpoint. Note that to access the route, we must delete the NetworkPolicies
  • The scripts folder contains the scripts used to build and push the workflow image and to generate the manifests used to deploy the workflow.

Getting started

The workflows projects were create using the kn-workflow cli by running:

kn-workflow quarkus create --name <specify project name, e.g. 00_new_project>

The workflow created will be a .json file and there is currently no flag on the kn-workflow cli to change the workflow output to a .yaml file.

A cli tool like yq can be used to convert to yaml. This would look something like this:

yq -p=json ./src/main/resources/workflow.sw.json > ./src/main/resources/workflow.sw.yaml 

Once the new .yaml file is created, you will need to delete the old .json file before building or running the workflow

Edit the workflow, add schema and spec files and run it locally from project's folder with:

kn-workflow quarkus run

Workflow images

For running the workflow locally (with kn-workflow run), the following image is pulled:

registry.redhat.io/openshift-serverless-1/logic-swf-devmode-rhel8:1.36.0

For building the workflow image, the following images are pulled:

registry.redhat.io/openshift-serverless-1/logic-swf-builder-rhel9:1.37.0-19
registry.access.redhat.com/ubi9/openjdk-17:1.21-2

References

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages