app-engine-flexible

Adding a local repository for dependency injection in python on google cloud

半腔热情 提交于 2019-12-20 03:34:18
问题 I am trying to deploy a Python app on Google Cloud. In the app I have a dependency that is actually locally available. So to add it in project using pip. I use pip install -r requirements.txt --find-links PATH_TO_DEPENDENCY . Everything works fine this way on local. But when I deploy it on Google Cloud using gcloud app deploy it internally calls the pip install -r requirements.txt due to which the local dependency is not installed and the code fails. Is there a way to modify the internal

Multiple services with different dockerfiles on GAE Flexible

徘徊边缘 提交于 2019-12-17 17:15:26
问题 I'm using Google AppEngine Flexible with python environment. Right now I have two services: default and worker that share the same codebase, configured by app.yaml and worker.yaml . Now I need to install native C++ library, so I had to switch to Custom runtime and added Dockerfile. Here is the Dockerfile generated by gcloud beta app gen-config --custom command FROM gcr.io/google-appengine/python LABEL python_version=python3.6 RUN virtualenv --no-download /env -p python3.6 # Set virtualenv

Connecting to 2nd gen Cloud SQL on App Engine flexible PHP 7.0 - missing socket

跟風遠走 提交于 2019-12-13 16:07:09
问题 I decided to try out PHP 7 on App Engine and have followed instructions here to connect to second gen Cloud SQL but I'm unable to get it working. As a testing script I decided to upload PhpMyAdmin and got the following error upon attempting to login: Then I decided to go into debug mode and see what's going on. Turns out that the proxy container is running, the /cloudsql/ folder is created but there is no socket there: Here is my app.yaml : runtime: php env: flex manual_scaling: instances: 1

global deployment of nodejs with app engine as described in the docs

穿精又带淫゛_ 提交于 2019-12-13 06:39:47
问题 In this article, Google describes a global deployment of a nodejs app in app engine flex. This image is from the article. The problem is on my understanding is this not possible from two reasons. It is not possible to access cross project resources in GCLB to create a bakend service. It is not possible to see the instance groups form GAE Flex to create a bakend service. My first idea was to proxy all requests over nginx running on compute engine instances in each region on separate project.

Taskqueue for long running tasks in FLEXIBLE app engine

为君一笑 提交于 2019-12-12 16:41:29
问题 I am building an app using Flexible App Engine and Python3. In the standard appengine, if you needed to run a task that was longer than 60s, you could either use taskqueue, or the deferred library (an abstraction of taskqueue) which I have done successfully. Flexible App Engine no longer supports appengine api which contains those functions. Instead, functionality is being migrated to the google-cloud library (https://googlecloudplatform.github.io/google-cloud-python/) instead (https://cloud

Google App Engine Flexible Environment at 0 instances

被刻印的时光 ゝ 提交于 2019-12-12 13:52:09
问题 Over the past week I've been seeing the number of instances on my GAE Flexible Environment fall to 0, with no new instance spinning up. My understanding of the Flexible environment is that this shouldn't be possible... (https://cloud.google.com/appengine/docs/the-appengine-environments) I was wondering if anyone else has been seeing these issues, or if they've solved the problem on their end before. My one hypothesis is that this might be an issue with my health monitoring endpoints, but

Failure deploying AppEngine version because of timeout

不羁的心 提交于 2019-12-12 05:13:23
问题 I am trying to deploy to Google AppEngine. (More precisely: Managed VM.) Earlier, I tried doing this from Windows, with Docker built in the cloud, and failed (see StackOverflow question); so now I tried from Linux, with Docker built locally. This also fails, but for a different reason. It fails consistently from various Linux dev machines. It succeeds when we run the same command from a Linux VM in the Google Cloud. What can I do to deploy this? gcloud preview app deploy /shared/yaml-war/app

How to fix Google Cloud Rails deployment issue

杀马特。学长 韩版系。学妹 提交于 2019-12-11 17:25:07
问题 I am trying to deploy a Rails app for testing using Google Cloud. I am following this tutorial by Google. When I run the gcloud app deploy command, I get the following error message after some time: Your bundle only supports platforms ["x64-mingw32"] but your local platforms are ["ruby", "x86_64-linux"], and there's no compatible match between those two lists. I have a feeling that I am missing something regarding my bundle's operating systems support, but I don't know where the issue is

google app engine flexible with docker 'site cannot be reached'

北城以北 提交于 2019-12-11 17:14:52
问题 I want to server R model using App Engine. I am following this example R with app engine, but stuck. I tried several methods but still have issues. Any guidance on this issue? Please refer to my code app.yaml runtime: custom env: flex Dockerfile FROM gcr.io/gcer-public/plumber-appengine LABEL maintainer="mark" RUN R -e "install.packages(c('plumber'), repos='http://cran.rstudio.com/')" WORKDIR /payload/ COPY [".", "./"] EXPOSE 8080 ENTRYPOINT ["R", "-e", "pr <- plumber::plumb(commandArgs()[4])

How oracle jdk can be configured in Google App Engine Flexible environment

江枫思渺然 提交于 2019-12-11 16:38:43
问题 Google App Engine just states about the usage of openjdk in app.yaml, Like runtime_config: jdk: openjdk8 server: jetty9 Reference : https://cloud.google.com/appengine/docs/flexible/java/configuring-your-app-with-app-yaml I want to use oracle jdk. How can I configure app.yaml to use oracle jdk Note: I am using Google App Engine Flexible environment 回答1: The config you referenced applies to the standard runtimes provided by Google, which does not come with the oracle jdk. But you can use a