How to build OpenAPI and Nodered local?

Hi everyone and Allan_Zimmermann,
I’m having trouble building OpenFlow.
I have followed the instructions (build from source | openflow) but it doesn’t work


Can you help me?

You need to provide more information. How am i suppose to know why it cannot detect docker if you don’t show the error message or explain how your testing the agent driver ?



I use VSCode to run OpenFlow and Docker to run Nodered but this error shows up

you cannot do that. then the docker instances cannot see openflow.

Oh, I see. Do you have guidelines to set up nodered with local OpenFlow?

For 1.4 and below deploy openflow nodered using NPM | openflow

I dont have one for 1.5
but you can find the source here GitHub - openiap/noderedagent
To run it, you need to create a lunch file that sets environment variable with “apiurl” and “oidc_config”
something like

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Run main",
            "cwd": "${workspaceFolder}",
            "console": "integratedTerminal",
            "runtimeArgs": [
                "--loader",
                "ts-node/esm"
            ],
            "program": "src/main.ts",
            "env": {
                "log_with_colors": "true",
                "apiurl": "grpc://username:supersecret@grpc.localhost.openiap.io:50051",
                "domain": "localhost.openiap.io",
                "oidc_config": "http://localhost.openiap.io/oidc/.well-known/openid-configuration",
                "port": "1880",
                "externalport": "1880",
                "nodered_id": "username",
                "api_role": "users"
            },
            "resolveSourceMapLocations": [
                "${workspaceFolder}/**",
                "!**/node_modules/**",
                "**/node_modules/@openiap/**",
            ]
        }
    ]
}
1 Like

I’m doing a rarther big update to how agents are handled. Might release it today or tomorrow.
This is to prepare for running “agents” outside docker ( like an application at the desktop to users or as an deamon for unattended processing ) and there i also add the concept of packages
So there will be an vs.code extension for easy packaging and uploading packages ( or you can upload in the webinterface ) then gitrepo environment variable will go away, and all agents will only download from openflow.

1 Like

I get it. Thank you Allan

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.