Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Google App Engine Flex support Pipfile?

For App Engine Standard the explicitly state that they do not support Pipfiles and immediately block you from pushing your project if it contains a Pipfile. In searching the documentation, I don't see anything that mentions if Pipfile is supported or not for App Engine Flex.

like image 634
RayB Avatar asked Oct 24 '19 17:10

RayB


People also ask

Does App Engine flex support C++?

The main App Engine page states "Application code written for the Python environment must be written exclusively in Python. Extensions written in the C language are not supported."

Can you run containers on App Engine?

Features. Customizable infrastructure - App Engine flexible environment instances are Compute Engine virtual machines, which means that you can take advantage of custom libraries, use SSH for debugging, and deploy your own Docker containers.

Does Google App Engine support Haskell?

Custom Runtimes and Containers Haskell, Google App Engine provides support for Custom Runtimes in the GAE flexible environment.

What is GCP Appengine?

App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.

What is the App Engine flexible environment?

Based on Compute Engine, the App Engine flexible environment automatically scales your app up and down while also balancing the load. You can customize these runtimes or provide your own runtime by supplying a custom Docker image or Dockerfile from the open source community.

How to allow App Engine flexible environment traffic on shared VPC?

A Shared VPC Admin needs to create a firewall rule in the Shared VPC host project in order to allow traffic to the App Engine flexible environment on the Shared VPC network. The firewall rule allows serving and health check traffic to flexible environment instances.

What is Google App Engine?

Based on Google Compute Engine, the App Engine flexible environment automatically scales your app up and down while balancing the load. Microservices, authorization, SQL and NoSQL databases, traffic splitting, logging, versioning, security scanning, and content delivery networks are all supported natively.

What ISAPP engine and how does it work?

App Engine allows developers to focus on doing what they do best, writing code. Based on Google Compute Engine, the App Engine flexible environment automatically scales your app up and down while balancing the load.


3 Answers

You can just include Pipfile and Pipfile.lock in the .gcloudignore file and run pip freeze > requirements.txt after any library changes.

like image 55
Moritz Makowski Avatar answered Oct 19 '22 21:10

Moritz Makowski


App Engine Flexible (and App Engine Standard) do not support Pipfile/Pipfile.lock.

https://cloud.google.com/appengine/docs/flexible/python/using-python-libraries says:

Dependencies for python applications are declared in a standard requirements.txt file.

and https://cloud.google.com/appengine/docs/standard/python3/runtime#dependencies says:

Dependency specification using the Pipfile/Pipfile.lock standard is currently not supported and your project must not have these files present.

like image 1
Dustin Ingram Avatar answered Oct 19 '22 21:10

Dustin Ingram


I ran a few tests, and, while the presence of a Pipfile file in the deployment directory of a GAE flexible app does not generate any errors, the file itself is completely ignored, along the dependencies specified in it.

Moreover, when attempting to replace the requirements.txt file with the Pipfile, a sample Python app deployment in the flexible environment errors out, asking for the gunicorn dependency which I had specified in the Pipfile instead.

Therefore, the short answer is unfortunately no, same applies for the flexible environment and thus, dependency specification using the Pipfile/Pipfile.lock standard is not supported at the moment.

like image 2
Maxim Avatar answered Oct 19 '22 23:10

Maxim