Hi All,
How to run local or docker agent processes backend on a windows system? similar to Supervisor.
k
Kevin Kho
02/07/2022, 9:20 PM
I think there is this thing called Windows task scheduler? are you familiar?
d
David Yang
02/07/2022, 9:29 PM
Windows task scheduler runs based on schedule. It actually call a windows command and the command could be executed under a specify AD account.
I'm more looking for something like windows service. A typical windows service can start automatically after the windows server started and it can keep running until windows server shutdown. Because I do want the agent process runs like a listener instead of just a scheduled process.
a
Anna Geller
02/07/2022, 9:39 PM
Do you happen to run it on Azure? if so, we have agents on the Azure marketplace
d
David Yang
02/07/2022, 9:43 PM
I'm aware of that although I'm exploring running agents on on-premises window servers. We have some windows applications need to run as some steps in a flow.
I have to run these windows applications in shelltasks and use local agent. It seems that docker agent doesn't like windows base images.
a
Anna Geller
02/07/2022, 10:16 PM
You're right, it's made for Linux, for Windows using local agent is probably the best option and your DevOps can probably help you run the agent startup command as a service - do you have someone in your team who can help with that?
🌠 1
d
David Yang
02/08/2022, 1:58 PM
Yeah, NSSM could be one of solutions. We'll try several options and let community know
👍 1
NSSM works! I created a windows service running docker agent. It starts automatically after the server started.