mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-16 01:58: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
|
||||
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 \
|
||||
&& 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 \
|
||||
&& ACCEPT_EULA=Y apt-get install -y msodbcsql18 \
|
||||
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
USER airflow
|
||||
# Download openmetadata airflow plugins
|
||||
|
||||
@ -14,6 +14,17 @@ RUN wget https://curl.se/download/curl-7.84.0.tar.gz && \
|
||||
|
||||
FROM base as airflow
|
||||
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"
|
||||
# Add docker provider for the DockerOperator
|
||||
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
|
||||
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"
|
||||
# Add docker provider for the DockerOperator
|
||||
RUN pip install "apache-airflow[docker]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user