-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
Milestone
Description
Apache Airflow version
2.0.2
What happened
When attempting to rebuild an apache airflow image, we are getting failures during our builds when trying to run apt-get update.
The error we see:
#5 3.879 W: GPG error: http://repo.mysql.com/apt/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29
#5 3.879 E: The repository 'http://repo.mysql.com/apt/debian buster InRelease' is not signed.
What you expected to happen
This behaviour shouldn't occur but it looks like some changes were published to the mysql apt repository this morning which is when we started experiencing issues.
I think we just need to update the airflow script which installs mysql and has a key already hardcoded here.
How to reproduce
Create a Dockerfile. Add the following lines to the Dockerfile:
FROM apache/airflow:2.0.2-python3.7 as airflow_main
USER root
RUN apt-get update
In a shell
run command -> docker build .
Operating System
Debian 10
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
We were able to fix this by running the following command before the apt-get update
FROM apache/airflow:2.0.2-python3.7 as airflow_main
USER root
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
RUN apt-get update
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
EmilaineBorato, younessov, macropin, deramirez1, Swalloow and 18 more
