This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unsigned repository issue of GCP SDK (close #154)
- Loading branch information
1 parent
fff6073
commit 292ccf5
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,12 @@ LABEL MAINTAINER="Snowplow Analytics Ltd. <[email protected]>" | |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
RUN \ | ||
mkdir -p /var/lib/apt/lists/partial &&\ | ||
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list &&\ | ||
apt-get update &&\ | ||
apt-get install -y --no-install-recommends apt-transport-https=1.4.10 ca-certificates=20200601~deb9u1 wget=1.18-5+deb9u3 gnupg=2.1.18-8~deb9u4 &&\ | ||
wget -O - http://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - &&\ | ||
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list &&\ | ||
apt-get install -y --no-install-recommends apt-transport-https=1.8.2.1 ca-certificates=20200601~deb10u1 gnupg=2.2.12-1+deb10u1 curl=7.64.0-4+deb10u1 &&\ | ||
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - &&\ | ||
apt-get update &&\ | ||
apt-get install -y --no-install-recommends python=2.7.13-2 google-cloud-sdk=302.0.0-0 &&\ | ||
apt-get install -y --no-install-recommends google-cloud-sdk=316.0.0-0 &&\ | ||
apt-get clean &&\ | ||
rm -rf /var/lib/apt/lists/* &&\ | ||
apt-get purge -y --auto-remove gnupg | ||
|