-
Notifications
You must be signed in to change notification settings - Fork 148
Add Google Cloud SDK #36
Changes from 6 commits
c8af605
baf9fe6
9232035
5b4d7bb
d8a1f7b
34a8da8
20105ec
173ecb7
4a935a7
b6b8c5e
5ddf405
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,22 @@ 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 | ||
|
||
ENV CLOUD_SDK_REPO="cloud-sdk-xenial" | ||
|
||
RUN echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think, as
here directly, like:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. great, I will make this update. |
||
&& 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 | ||
|
||
RUN /usr/bin/gcloud config set --installation component_manager/disable_update_check true | ||
RUN sed -i -- 's/\"disable_updater\": false/\"disable_updater\": true/g' /usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/config.json | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this required even if you run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I also manually confirmed that gcloud config set never updates the config.json file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense, thank you! |
||
|
||
# ------------------------------------------------------ | ||
# --- Cleanup and rev num | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
would be better, without that we'll have to update this variable fromxenial
when we update the base Ubuntu versionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back ticks should work, we use it here for example: https://github.com/bitrise-docker/bitrise-base/blob/master/Dockerfile#L95
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.