Skip to content

Commit

Permalink
Merge pull request #801 from jupyter-incubator/devstein/fix-gpg-error
Browse files Browse the repository at this point in the history
Fix GCP GPG Key Error in Docker Build
  • Loading branch information
devstein committed Jan 17, 2023
2 parents ee8d6f4 + f508e06 commit 9c5c60f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile.spark
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ USER 0
# ----------
# Setup Python and Livy/Spark Deps
#
# Install GCP keys to avoid error:
# "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"
RUN apt-get install apt-transport-https ca-certificates gnupg
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
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
# Livy Requires:
# - mvn (from maven package or maven3 tarball)
# - openjdk-8-jdk (or Oracle JDK 8)
Expand Down

0 comments on commit 9c5c60f

Please sign in to comment.