Skip to content

Commit 9c5c60f

Browse files
authored
Merge pull request #801 from jupyter-incubator/devstein/fix-gpg-error
Fix GCP GPG Key Error in Docker Build
2 parents ee8d6f4 + f508e06 commit 9c5c60f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile.spark

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ USER 0
77
# ----------
88
# Setup Python and Livy/Spark Deps
99
#
10+
# Install GCP keys to avoid error:
11+
# "GPG error: https://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05"
12+
RUN apt-get install apt-transport-https ca-certificates gnupg
13+
RUN 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
14+
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
1015
# Livy Requires:
1116
# - mvn (from maven package or maven3 tarball)
1217
# - openjdk-8-jdk (or Oracle JDK 8)

0 commit comments

Comments
 (0)