Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ingestion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ FROM ${BASE_IMAGE}
# gRPC ships a separate CA bundle that can lag behind OS distrust updates.
ENV GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/etc/ssl/certs/ca-certificates.crt
USER root
RUN apt-get -qq update \
# The Airflow base adds MariaDB's apt repo from archive.mariadb.org, which now redirects to
# mirror.mariadb.org. Some mirrors it picks redirect https to http, which apt refuses, so
# `apt-get update` fails depending on the mirror. dlm.mariadb.com serves the same signed repo.
# Keep the MariaDB repo rather than switching to Debian's MariaDB packages: the base pins
# o=MariaDB at 999, so that switch would need forced purges and a downgrade.
RUN find /etc/apt/sources.list.d -type f -exec sed -i -E \
's#https://archive\.mariadb\.org/mariadb-([0-9.]+)/repo/debian/?#https://dlm.mariadb.com/repo/mariadb-server/\1/repo/debian#' {} + \
&& apt-get -qq update \
Comment thread
gitar-bot[bot] marked this conversation as resolved.
Resolved
&& apt-get -qq install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY ingestion/airflow-constraints-3.3.2.txt /opt/openmetadata/python-tls/airflow-constraints.txt
Expand Down
9 changes: 8 additions & 1 deletion ingestion/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ FROM apache/airflow:3.3.2-python3.12
# gRPC ships a separate CA bundle that can lag behind OS distrust updates.
ENV GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/etc/ssl/certs/ca-certificates.crt
USER root
RUN apt-get -qq update \
# The Airflow base adds MariaDB's apt repo from archive.mariadb.org, which now redirects to
# mirror.mariadb.org. Some mirrors it picks redirect https to http, which apt refuses, so
# `apt-get update` fails depending on the mirror. dlm.mariadb.com serves the same signed repo.
# Keep the MariaDB repo rather than switching to Debian's MariaDB packages: the base pins
# o=MariaDB at 999, so that switch would need forced purges and a downgrade.
RUN find /etc/apt/sources.list.d -type f -exec sed -i -E \
's#https://archive\.mariadb\.org/mariadb-([0-9.]+)/repo/debian/?#https://dlm.mariadb.com/repo/mariadb-server/\1/repo/debian#' {} + \
&& apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN --mount=type=bind,source=ingestion/scripts/patch_python_seeds.py,target=/tmp/patch_python_seeds.py \
Expand Down
Loading