简体   繁体   English

如何从谷歌云应用引擎与外部 exe 程序通信?

[英]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 引擎下棋的 Lichess BOT。 Stockfish has an.exe file I can run and communicate through UCI protocol. Stockfish 有一个.exe 文件,我可以通过 UCI 协议运行和通信。 I want to write my application in node.js and deploy on google cloud app engine.我想在 node.js 中编写我的应用程序并部署在谷歌云应用引擎上。 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?我可以部署 node.js 程序,但是如何让 stockfish.exe 程序在应用程序引擎上运行并在我的 javascript 代码中使用它?

This is not possible in App Engine Standard.这在 App Engine 标准中是不可能的。

The reason for that is that the environments in App Engine are controlled by Google so that performance/scability and security issues are minimized.这样做的原因是 App Engine 中的环境由 Google 控制,以便将性能/可扩展性和安全问题降至最低。 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.对于灵活的环境,您可以更灵活地使用 Docker 文件,这个社区答案可能在这方面有所帮助,但是,我想说这仍然不推荐。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用oAuth2在服务器之间进行通信(Google Cloud Engine-> Google App Engine) - How to communicate between servers (Google Cloud Engine -> Google App Engine) using oAuth2 如何将数据从应用程序引擎保存到数据存储谷歌云 javascript - How to save data from app engine to datastore google cloud javascript 通过Google App Engine(Java)将文件上传到Google云端存储 - Upload file to Google cloud storage from Google App Engine (Java) 如何使用angular 2容器应用程序与外部HTML通信 - How to communicate and external HTML with angular 2 container app Google App Engine:修改 Cloud Run 环境 - Google App Engine: Modify Cloud Run Environment 如何在本地Google App Engine的非默认模块上访问Google Cloud Endpoints? - How to access Google Cloud Endpoints on non-default module of local Google App Engine? 如何保留部署在谷歌云应用引擎上的 node.js 应用的统计数据并保持我的数据持久化 - How to keep stats for a node.js app deployed on google cloud app engine and keep my data persistent 如何从Google App Engine中的.js中查询文件是否存在 - How to ask the DB if a file exists from a .js in Google App Engine 如何使用casperjs脚本运行外部程序(exe,bat) - How to run external program(exe, bat) withing casperjs script Google Cloud Secrets Manager 拒绝访问 App Engine 应用程序,但可与 Google Cloud Function 一起使用 - Google Cloud Secrets Manager denies access to App Engine application but works with Google Cloud Function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM