Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
yhilmare committed Jul 24, 2024
1 parent 6f85ec0 commit 775b5ce
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions distribution/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The Dockerfile is built for OB Cloud AP
FROM python:3.8
FROM apache/airflow:2.9.3-python3.9

LABEL maintainer="ODC <[email protected]>"
LABEL description="OB Cloud compute module"
Expand All @@ -11,8 +11,7 @@ ARG DBT_OCEANBASE_ADAPTER_BRANCH=dev/1.0.x
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.utf-8

RUN pip install dbt-core==${DBT_CORE_VERSION} \
&& pip install 'apache-airflow==2.9.2' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.9.2/constraints-3.8.txt"
RUN pip install dbt-core==${DBT_CORE_VERSION}

RUN git clone https://github.com/oceanbase/dbt-oceanbase.git --branch ${DBT_OCEANBASE_ADAPTER_BRANCH} \
&& cd dbt-oceanbase \
Expand All @@ -21,8 +20,4 @@ RUN git clone https://github.com/oceanbase/dbt-oceanbase.git --branch ${DBT_OCEA
&& rm -rf dbt-oceanbase

RUN mkdir -p ${AIRFLOW_INSTALL_DIR}
WORKDIR ${AIRFLOW_INSTALL_DIR}

EXPOSE 8080

ENTRYPOINT ["airflow"]
WORKDIR ${AIRFLOW_INSTALL_DIR}

0 comments on commit 775b5ce

Please sign in to comment.