title: Angular 5 - GAE flex environment deployment
body: <p>We use bitbucket pipeline for our angular 5 to deploy our code to GAE. We are ending up with the following exception. We use bitbucket pipelines the the CI/CD</p>
  
  <p>THis is the pipeline code</p>
  
  <pre><code>    image: node:9.11.1
       pipelines:
  
        custom:
  
         default:
  
           - step:
  
             script: 
  
               -  npm install -g @angular/cli@latest
  
               - ng build --prod
               - cp app.yaml dist
               - ls dist
               - cd dist
  
               - curl -o /tmp/google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-190.0.0-linux-x86_64.tar.gz
  
               - tar -xvf /tmp/google-cloud-sdk.tar.gz -C /tmp/
  
               - /tmp/google-cloud-sdk/install.sh -q
  
               - source /tmp/google-cloud-sdk/path.bash.inc
               - echo $GCLOUD_API_KEYFILE | base64 --decode --ignore-garbage &gt; ./gcloud-api-key.json
               - gcloud config set project $GCLOUD_PROJECT
  
               - gcloud components install app-engine-java
  
               - gcloud auth activate-service-account --key-file gcloud-api-key.json
  
               - echo $GCLOUD_API_KEYFILE &gt; /tmp/client-secret.json  
  
               - gcloud config set project $GCLOUD_PROJECT
               - gcloud app update --split-health-checks --project adtecy-ui 
  
               - gcloud app deploy app.yaml
  </code></pre>
  
  <p>I am looking to use node docker image to deploy angular 5 (version 5.2.11) app to GAE flex environment but it takes an unusally long time and the status is still "In Progress" (not sure the usual deploy time)</p>
  
  <p>This is my app.yaml file</p>
  
  <pre><code>    env: flex
      runtime: python
  
  
      threadsafe: true
  
      readiness_check:
  
         timeout_sec: 4
         check_interval_sec: 5
         failure_threshold: 2
         success_threshold: 2
         app_start_timeout_sec: 3600
  </code></pre>
  
  <p>I have given a very high timeout period because the previous push failed with a timeout</p>
  
  <p>I believe GAE by default use python and hence we did not install python
  Right now the deployment is running for about 20 mins or so but without letting us know any result. Could you guys help in deploying my app to GAE with minimal time? </p>
  
  <p>EDIT:
  Now we have got the result after running for 33 minutes
          `21df82f90a72: Layer already exists</p>
  
  <pre><code>    aeb4b6656589: Pushed
  
      latest: digest: 
  
  sha256:c57d3178321c5f2721fc70cd00cb7862d469c74a6bf616ecfda760342c13af7e size: 3255
  
      DONE
      --------------------------------------------------------------------------------
      Updating service [default] (this may take several minutes)...
      .failed.
       ERROR: (gcloud.app.deploy) Operation [apps/adtecy- 
       ui/operations/9c273f87-91a3-495a-b75d-0d6c767dce97] timed out. 
       This operation may still be underway.`
  </code></pre>