title: Google AppEngine Flex: Building and pushing image for service failed
body: <p>I am trying to a Rails 6 application to Google AppEngine flex. I've followed the steps <a href="https://codelabs.developers.google.com/codelabs/cloud-app-engine-ruby-on-rails/index.html#0" rel="nofollow noreferrer">here</a> and currently have the following <code>app.yaml</code> setup in my root:</p>
  <pre><code>entrypoint: bundle exec rails s --port $PORT
  env: flex
  runtime: ruby
  env_variables: ...
  </code></pre>
  <p>When running <code>gcloud --project [PROJECT_ID] app deploy app.yaml --verbosity=debug</code> it continues until this point:</p>
  <pre><code>...
  INFO: Need Dockerfile to be generated for runtime ruby
  Building and pushing image for service [default]
  </code></pre>
  <p>At this point it's spinning up the following process on my machine:</p>
  <pre><code>python2 -S /usr/bin/../lib/google-cloud-sdk/lib/gcloud.py --project [PROJECT_ID] app deploy app.yaml --verbosity=debug
  </code></pre>
  <p>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.</p>
  <p>Any thoughts on why this is happening and how to fix it are very much appreciated.</p>