Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Add Google Cloud SDK #36

Merged
merged 11 commits into from
Nov 22, 2016
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,26 @@ RUN mvn --version
RUN gem install fastlane --no-document
RUN fastlane --version

# ------------------------------------------------------
# --- Install Google Cloud SDK
# --- https://github.com/GoogleCloudPlatform/cloud-sdk-docker/blob/master/Dockerfile
# --- https://firebase.google.com/docs/test-lab/command-line
# --- https://cloud.google.com/sdk/downloads?hl=sr#linux

RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk-`lsb_release -c -s` main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - \
&& sudo apt-get update -qq \
&& sudo apt-get install -y -qq google-cloud-sdk

ENV CLOUD_SDK_CONFIG /usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/config.json

# gcloud config doesn't update config.json. See upstream Dockerfile for details.
RUN /usr/bin/gcloud config set --installation component_manager/disable_update_check true
RUN sed -i -- 's/\"disable_updater\": false/\"disable_updater\": true/g' $CLOUD_SDK_CONFIG

RUN /usr/bin/gcloud config set --installation core/disable_usage_reporting true
RUN sed -i -- 's/\"disable_usage_reporting\": false/\"disable_usage_reporting\": true/g' $CLOUD_SDK_CONFIG

# ------------------------------------------------------
# --- Cleanup and rev num

Expand Down
6 changes: 6 additions & 0 deletions system_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ ver_line="$( javac -version 2>&1 )" ; echo "* Java: $ver_line"
echo "========================================"
echo

echo
echo "=== Google Cloud components ============"
gcloud version
echo "========================================"
echo

echo
echo "=== Testing Android tools =============="
echo " * adb path:"
Expand Down