Skip to content

Commit

Permalink
build: change fastetl installation order
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbellini committed Sep 2, 2024
1 parent 31d98b3 commit 1bb6d20
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ COPY requirements-cdata-dags.txt .

RUN pip uninstall -y -r requirements-uninstall.txt

ARG dev_build="false"
RUN \
if [[ "${dev_build}" == "false" ]] ; \
then pip install --no-cache-dir apache-airflow-providers-fastetl; \
else \
echo ***apache-airflow-providers-fastetl not installed*** && \
pip install --no-cache-dir -r https://raw.githubusercontent.com/gestaogovbr/FastETL/main/requirements.txt ; \
fi

RUN pip install --no-cache-dir -r \
https://raw.githubusercontent.com/gestaogovbr/Ro-dou/main/requirements.txt && \
pip install --no-cache-dir \
Expand All @@ -63,14 +72,6 @@ RUN pip install --no-cache-dir -r \
apache-airflow-providers-telegram==4.4.0 && \
pip install --no-cache-dir -r requirements-cdata-dags.txt

ARG dev_build="false"
RUN \
if [[ "${dev_build}" == "false" ]] ; \
then pip install --no-cache-dir apache-airflow-providers-fastetl; \
else \
echo ***apache-airflow-providers-fastetl not installed*** && \
pip install --no-cache-dir -r https://raw.githubusercontent.com/gestaogovbr/FastETL/main/requirements.txt ; \
fi

RUN while [[ "$(curl -s -o /tmp/thawte.pem -w ''%{http_code}'' https://ssltools.digicert.com/chainTester/webservice/validatecerts/certificate?certKey=issuer.intermediate.cert.98&fileName=Thawte%20RSA%20CA%202018&fileExtension=txt)" != "200" ]]; do sleep 1; done
RUN cat /tmp/thawte.pem >> /home/airflow/.local/lib/python3.10/site-packages/certifi/cacert.pem
Expand Down

0 comments on commit 1bb6d20

Please sign in to comment.