balena-io-experimental / node-red-contrib-balena

A set of nodes to interact with the balena supervisor from node-red
Apache License 2.0
16 stars 3 forks source link

Support stop/start/restart of a specific service of a balena application. #10

Open janvda opened 4 years ago

janvda commented 4 years ago

It would be interesting to extend the existing node-red-contrib-balena nodes with nodes that allow to stop, start, restart a specific service of a multicontainer balena application. Similarly as can be done via the BalenaCloud dashboard.

So I think for this a node-red node wrapper is needed for the following HTTP API requests:

For this it might also be interesting to have a node that allows to retrieve a list of all balena services running on the balena device.

So I think for this a node-red node wrapper is needed for following HTTP API request:

janvda commented 4 years ago

I would suggest that for the first version: the actual service name is specified in the msg.payload of the incoming message for the start, stop and restart nodes.

janvda commented 4 years ago

I have created the 4 nodes in my branch https://github.com/janvda/node-red-contrib-balena/tree/service_start_stop_nodes