mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-18 11:07:41 +00:00
Configured ODBC drivers (#6924)
This commit is contained in:
parent
c8ab6fa59b
commit
4c7fd03b5a
@ -1,9 +1,13 @@
|
|||||||
FROM apache/airflow:2.1.4-python3.9
|
FROM apache/airflow:2.1.4-python3.9
|
||||||
USER root
|
USER root
|
||||||
|
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
|
||||||
|
RUN curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
gcc libsasl2-dev build-essential libssl-dev libffi-dev \
|
gcc libsasl2-dev gnupg build-essential libssl-dev libffi-dev \
|
||||||
librdkafka-dev unixodbc-dev libxml2 libevent-dev --no-install-recommends \
|
librdkafka-dev unixodbc-dev libxml2 libevent-dev --no-install-recommends \
|
||||||
|
&& ACCEPT_EULA=Y apt-get install -y msodbcsql18 \
|
||||||
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
USER airflow
|
USER airflow
|
||||||
# Download openmetadata airflow plugins
|
# Download openmetadata airflow plugins
|
||||||
|
|||||||
@ -14,6 +14,17 @@ RUN wget https://curl.se/download/curl-7.84.0.tar.gz && \
|
|||||||
|
|
||||||
FROM base as airflow
|
FROM base as airflow
|
||||||
ENV AIRFLOW_VERSION=2.3.3
|
ENV AIRFLOW_VERSION=2.3.3
|
||||||
|
|
||||||
|
# install odbc driver
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y gnupg && \
|
||||||
|
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
|
||||||
|
curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
|
||||||
|
apt-get update && \
|
||||||
|
ACCEPT_EULA=Y apt-get install -y msodbcsql18 && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
ENV CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.9.txt"
|
ENV CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.9.txt"
|
||||||
# Add docker provider for the DockerOperator
|
# Add docker provider for the DockerOperator
|
||||||
RUN pip install "apache-airflow[docker]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
|
RUN pip install "apache-airflow[docker]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
|
||||||
|
|||||||
@ -14,6 +14,14 @@ RUN wget https://curl.se/download/curl-7.84.0.tar.gz && \
|
|||||||
|
|
||||||
FROM base as airflow
|
FROM base as airflow
|
||||||
ENV AIRFLOW_VERSION=2.3.3
|
ENV AIRFLOW_VERSION=2.3.3
|
||||||
|
#install odbc driver
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y gnupg && \
|
||||||
|
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
|
||||||
|
curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
|
||||||
|
apt-get update && \
|
||||||
|
ACCEPT_EULA=Y apt-get install -y msodbcsql18 && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
ENV CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.9.txt"
|
ENV CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.9.txt"
|
||||||
# Add docker provider for the DockerOperator
|
# Add docker provider for the DockerOperator
|
||||||
RUN pip install "apache-airflow[docker]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
|
RUN pip install "apache-airflow[docker]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user