Skip to content

Commit 2741d27

Browse files
SumanMaharanachirag-madlanikeshavmohta09
authored
Fix Trivy scans (#24867)
* Fix Trivy scans * remove comms * fixes * fixed incompatible changes * revert dependency conflicts * update airflow to 3.1.5 * fix airflow not showing debug logs --------- Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Co-authored-by: Keshav Mohta <68001229+keshavmohta09@users.noreply.github.com>
1 parent ea49233 commit 2741d27

5 files changed

Lines changed: 720 additions & 8 deletions

File tree

docker/development/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ services:
496496
environment:
497497
AIRFLOW__API__AUTH_BACKENDS: "airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session"
498498
AIRFLOW__CORE__EXECUTOR: LocalExecutor
499+
AIRFLOW__LOGGING__LOGGING_LEVEL: ${AIRFLOW_LOGGING_LEVEL:-DEBUG}
499500
AIRFLOW__OPENMETADATA_AIRFLOW_APIS__DAG_GENERATED_CONFIGS: "/opt/airflow/dag_generated_configs"
500501
DB_HOST: ${AIRFLOW_DB_HOST:-mysql}
501502
DB_PORT: ${AIRFLOW_DB_PORT:-3306}

ingestion/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mysql:8.3 AS mysql
22

3-
FROM apache/airflow:3.1.2-python3.10
3+
FROM apache/airflow:3.1.5-python3.10
44
USER root
55
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg \
66
&& echo "deb [arch=amd64,arm64,armhf signed-by=/usr/share/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/debian/12/prod bookworm main" > /etc/apt/sources.list.d/mssql-release.list
@@ -82,7 +82,7 @@ ENV PIP_NO_CACHE_DIR=1
8282
ENV PIP_QUIET=1
8383
ARG RI_VERSION="1.12.0.0.dev0"
8484
RUN pip install --upgrade pip
85-
RUN pip install "openmetadata-managed-apis~=${RI_VERSION}" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.1.2/constraints-3.10.txt"
85+
RUN pip install "openmetadata-managed-apis~=${RI_VERSION}" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.1.5/constraints-3.10.txt"
8686
RUN pip install "openmetadata-ingestion[${INGESTION_DEPENDENCY}]~=${RI_VERSION}"
8787

8888
# Temporary workaround for https://github.com/open-metadata/OpenMetadata/issues/9593

ingestion/Dockerfile.ci

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mysql:8.3 AS mysql
22

3-
FROM apache/airflow:3.1.2-python3.10
3+
FROM apache/airflow:3.1.5-python3.10
44
USER root
55
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg \
66
&& echo "deb [arch=amd64,arm64,armhf signed-by=/usr/share/keyrings/microsoft-prod.gpg] https://packages.microsoft.com/debian/12/prod bookworm main" > /etc/apt/sources.list.d/mssql-release.list
@@ -75,7 +75,7 @@ COPY --chown=airflow:0 openmetadata-airflow-apis /home/airflow/openmetadata-airf
7575
# Required for Airflow DAGs of Sample Data
7676
COPY --chown=airflow:0 ingestion/examples/airflow/dags /opt/airflow/dags
7777
COPY --chown=airflow:0 ingestion/examples/airflow/test_dags /opt/airflow/dags
78-
COPY --chown=airflow:0 ingestion/airflow-constraints-3.1.2.txt /home/airflow/airflow-constraints-3.1.2.txt
78+
COPY --chown=airflow:0 ingestion/airflow-constraints-3.1.5.txt /home/airflow/airflow-constraints-3.1.5.txt
7979

8080
USER airflow
8181

@@ -88,11 +88,11 @@ ENV PIP_QUIET=1
8888
RUN pip install --upgrade pip
8989

9090
# Install FAB provider for Airflow 3.x Flask Blueprint compatibility
91-
RUN pip install "apache-airflow-providers-fab>=1.0.0" --constraint "/home/airflow/airflow-constraints-3.1.2.txt" || true
91+
RUN pip install "apache-airflow-providers-fab>=1.0.0" --constraint "/home/airflow/airflow-constraints-3.1.5.txt" || true
9292

9393

9494
WORKDIR /home/airflow/openmetadata-airflow-apis
95-
RUN pip install "." --constraint "/home/airflow/airflow-constraints-3.1.2.txt"
95+
RUN pip install "." --constraint "/home/airflow/airflow-constraints-3.1.5.txt"
9696

9797
WORKDIR /home/airflow/ingestion
9898

0 commit comments

Comments
 (0)