My app needs cmake
, libx11-dev
and libpng-dev
to build. I came across this documentation, which leads me to believe that I can list these as dependencies for my app to run on the Google App Engine platform, although I cannot figure out how. I was successfully able to run my app in a Compute Engine instance, although this is costly and, if I'm not mistaken, unnecessary. How do I get the packages listed at the beginning of the question installed beyond session end?
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- Docker task in Azure devops won't accept "$(pw
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Why do Dataflow steps not start?
- google-drive can't get push notifications
You need to keep in mind that the App Engine Flexible Environment still uses Compute Engine instances so may not get an additional benefit from moving across to this
The issue that you have is that if you require
cmake
,libx11-dev
andlibpng-dev
to build your application you'll still need to use an underlying Compute Engine VM in order to run the application. This will be the case even if you consider moving across to Kubernetes Engine as well.If you're looking to manage costs for your application, perhaps consider downsizing the VM to a smaller instance or look into modifying your application to suit the App Engine Standard Environment or use Cloud Functions
You can only list
Node.js
dependencies that way. From Declaring and managing dependencies (emphasis mine):You can use dependencies other than
Node.js
(at leastcmake
in your list) but only in the flexible environment, via a custom runtime. From About Custom Runtimes:See also Building Custom Runtimes.