1

I am trying to a Rails 6 application to Google AppEngine flex. I've followed the steps here and currently have the following app.yaml setup in my root:

entrypoint: bundle exec rails s --port $PORT
env: flex
runtime: ruby
env_variables: ...

When running gcloud --project [PROJECT_ID] app deploy app.yaml --verbosity=debug it continues until this point:

...
INFO: Need Dockerfile to be generated for runtime ruby
Building and pushing image for service [default]

At this point it's spinning up the following process on my machine:

python2 -S /usr/bin/../lib/google-cloud-sdk/lib/gcloud.py --project [PROJECT_ID] app deploy app.yaml --verbosity=debug

which uses 100% CPU and can run for 30min+ without anything happening. I also checked the network traffic at this point and there is nothing related to that process happening.

Any thoughts on why this is happening and how to fix it are very much appreciated.

Severin
  • 8,508
  • 14
  • 68
  • 117

1 Answers1

0

In the Quickstart the app.yaml file is in a different order, starting with the runtime and specifying the resources will have the machine.

The conbination of this two gives the dockerfile so the issue seems to be related to this file, I am adding a full working one.

runtime: ruby
env: flex
entrypoint: bundle exec ruby app.rb

manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10

I tested with this one myself deploying from an Ubuntu 20.04 computer with the Cloud SDK 299 and worked fine.

Soni Sol
  • 2,367
  • 3
  • 12
  • 23