You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to inject values into many types of nodes into a flow by using environmental variables - for example $(OPENWHISK_API_URL).
This is particularly useful when developing and deploying 12-Factor App-style Node-RED flows packaged in Docker images; values can easily be injected at container start-up: docker run -d -e OPENWHISK_API_URL="someURL" -e OPENWHISK_AUTH="someKey"...
However, the pre-populated OpenWhisk Namespace dropdown in this node is not injectable, requiring the following steps to be taken:
Manually open & edit the flows.json in a text editor and replace the current OpenWhisk Namespace value(s) with tokens.
Add flows.json to Docker image.
Add boot script to Docker image that uses sed to replace the tokens in the flow files with injected values, before invoking Node-RED.
Would it be possible to render the OpenWhisk Namespace field in this node injectable using simple environmental injection as described above?
The text was updated successfully, but these errors were encountered:
It is possible to inject values into many types of nodes into a flow by using environmental variables - for example
$(OPENWHISK_API_URL)
.This is particularly useful when developing and deploying 12-Factor App-style Node-RED flows packaged in Docker images; values can easily be injected at container start-up:
docker run -d -e OPENWHISK_API_URL="someURL" -e OPENWHISK_AUTH="someKey"...
However, the pre-populated OpenWhisk Namespace dropdown in this node is not injectable, requiring the following steps to be taken:
sed
to replace the tokens in the flow files with injected values, before invoking Node-RED.Would it be possible to render the OpenWhisk Namespace field in this node injectable using simple environmental injection as described above?
The text was updated successfully, but these errors were encountered: