siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
130 stars 79 forks source link

preinstall local node-red node to image #316

Closed applea9 closed 2 years ago

applea9 commented 2 years ago

Hi,

I have created a node-red node locally, which is not published in the npm registry.

I would like to preinstall this node in the image, could you give some hints how to achieve it?

Thanks very much.

jan-kiszka commented 2 years ago

Have a look at https://github.com/siemens/meta-iot2050/tree/master/recipes-app/node-red-gpio. Your recipe could be fairly similar, except for where the node sources would come from (maybe in-tree, file://, maybe from another local repo).

applea9 commented 2 years ago

Thanks for your answer.

When I install npm package with npm.bbclass, I want to add extra custom arguments in addition to the predefined npm arguments. After checking the npm.bbclass file, I didn't find such options. Is it possible to do it?

jan-kiszka commented 2 years ago

npm.bbclass is for pulling pre-packaged nodes from npmjs.com. That's not suited here and therefore also not used by the example I cited.

applea9 commented 2 years ago

Ok, Thanks a lot.