Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
205 views
in Technique[技术] by (71.8m points)

javascript - How to communicate with an external exe program from an google cloud app engine?

I want to make a Lichess BOT that plays chess using Stockfish engine. Stockfish has an .exe file I can run and communicate through UCI protocol. I want to write my application in node.js and deploy on google cloud app engine. I can deploy a node.js program, but how do I get stockfish.exe program to run on app engine and use it in my javascript code?

question from:https://stackoverflow.com/questions/65557743/how-to-communicate-with-an-external-exe-program-from-an-google-cloud-app-engine

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This is not possible in App Engine Standard.

The reason for that is that the environments in App Engine are controlled by Google so that performance/scability and security issues are minimized. And enabling executables to be executed in such environment could pose a high security risk.

For the Flexible environment you have a bit more flexibility with the use of Docker Files, and this community answer might be helpful on that regard, however, I would say that this is still not recommended.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...