Closed Iamtheoldman closed 1 month ago
Hello @Iamtheoldman! I'm here to help you with any bugs or questions you have. I can also assist you in becoming a contributor while we wait for a human maintainer.
The issue you're encountering with GPG key errors during the Docker build process is due to invalid signatures for the Debian repositories. This is not directly related to Superset but rather to the Debian repositories being accessed.
To resolve this, you can add the following steps to your Dockerfile to update the GPG keys:
FROM debian:bookworm
# Add the necessary GPG keys
RUN apt-get update -qq && apt-get install -yqq --no-install-recommends \
gnupg2 \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 \
&& apt-get update -qq
# Install the required packages
RUN apt-get install -yqq --no-install-recommends \
libnss3 \
libdbus-glib-1-2 \
libgtk-3-0 \
libx11-xcb1 \
libasound2 \
libxtst6 \
git \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
This will add the necessary GPG keys and should resolve the GPG errors you are encountering during the Docker build process.
To continue talking to Dosu, mention @dosu.
Bug description
How to reproduce the bug
Steps to Reproduce Install Docker if it's not already installed. You can download and install Docker Desktop from here.
Create a New Directory for your project:
bash Copy code mkdir docker-apt-bug cd docker-apt-bug Create a Dockerfile: Create a file named Dockerfile in this directory:
bash Copy code touch Dockerfile Edit the Dockerfile: Open the Dockerfile in your favorite text editor and add the following content. This is the same as what caused the GPG key errors you described:
Dockerfile Copy code FROM debian:bookworm
RUN apt-get update -qq && apt-get install -yqq --no-install-recommends \ libnss3 libdbus-glib-1-2 libgtk-3-0 libx11-xcb1 libasound2 libxtst6 git pkg-config && \ rm -rf /var/lib/apt/lists/* Build the Docker Image: Open your terminal in the directory where the Dockerfile is saved, and run:
bash Copy code docker build -t test-apt-bug . Encounter the Bug: During the build process, you should encounter the error related to the GPG signature, similar to what you saw earlier:
bash Copy code W: GPG error: http://deb.debian.org/debian bookworm InRelease: At least one invalid signature was encountered. E: The repository 'http://deb.debian.org/debian bookworm InRelease' is not signed.
Screenshots/recordings
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist