dockur / windows

Windows inside a Docker container.
MIT License
29.23k stars 1.99k forks source link

[Question]: Support to add custom javascript for tracking ? #758

Closed iamarpitpatidar closed 1 month ago

iamarpitpatidar commented 1 month ago

Is your question not already answered in the FAQ?

Is this a general question and not a technical issue?

Question

Hey so, I need to check idle time for my instance, and if I don't receive health check within one hour I'll terminate the instance from DO. Almost every time I create the instance and I forget to kill the instance and ended up paying $$$$ in bills.

Can anyone please help me how can I add additional javascript to that noVNC agent, (I've got the script just dunno where to add it) so that I can do sort of idle timeout thingy.. kinda like github codespace ?

iamarpitpatidar commented 1 month ago

PS: I've created a powershell script also, that checks any user input, even stream videos as well (gives a popup if no input in last 10 mins) and as soon as user even moves the cursor it fades away.

But again I need to inject custom data to every instance programmatically (instance UUIDs basically) to keep a track. any ideas how can I do that programmatically and if it helps I am using DigitalOcean for deploying all my instances.

Thank you

kroese commented 1 month ago

Sorry, but this is a bit off-topic to this container I guess, because its for a very specific usecase.