<p>I am trying to use CircleCI to automate my push to the google container registry and initiate a rolling update of the kubernetes pods. I have a <code>circle.yml</code> file with dependencies like this:</p>

<pre><code>dependencies:
  cache_directories:
    - ~/kubernetes
    - ./google-cloud-sdk
  pre:
    - chmod a+x ./download-gcloud.sh ./install-kubernetes.sh ./deploy.sh
    - ./download-gcloud.sh
    - ./google-cloud-sdk/install.sh &lt;--- This step hangs
    - ./google-cloud-sdk/bin/gcloud components update
    - ./google-cloud-sdk/bin/gcloud auth activate-service-account $GCLOUD_CLIENT_ID --key-file ./kubernetes/gcloud_pem.p12
    - ./install-kubernetes.sh
</code></pre>

<p>I can pull the tar file down and install it, but I am not sure how to select a prompt, so the build hangs:</p>

<pre><code>Welcome to the Google Cloud SDK!

To help improve the quality of this product, we collect anonymized data on how
the SDK is used. You may choose to opt out of this collection now (by choosing
'N' at the below prompt), or at any time in the future by running the following
command:

gcloud config set --scope=user disable_usage_reporting true

Do you want to help improve the Google Cloud SDK (Y/n)?
</code></pre>

<p>Is there a flag I can set when running the install script to disable prompts?</p>

<p>The recommended way to install the Cloud SDK non-interactively is to set the environment variable <code>CLOUDSDK_CORE_DISABLE_PROMPTS</code>:</p>

<pre><code>export CLOUDSDK_CORE_DISABLE_PROMPTS=1
</code></pre>

<p>This will make the Cloud SDK run in non-interactive mode, in which it accepts the default value for all prompts. This applies both to installation and general operation (which will be useful for scripting).</p>

<p>To make this permanent, run</p>

<pre><code>gcloud config set core/disable_prompts 1
</code></pre>

<p>once the Cloud SDK is installed.</p>
