Skip to content

Commit

Permalink
Merge pull request #539 from OP-TED/feature/change-airflow-docker-build
Browse files Browse the repository at this point in the history
changed Dockerfile for airflow build
  • Loading branch information
costezki authored May 28, 2024
2 parents a5a8973 + 650de2a commit a857375
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ create-env-airflow:
@ ln -s -f -n ${PROJECT_PATH}/ted_sws ${AIRFLOW_INFRA_FOLDER}/ted_sws
@ chmod 777 ${AIRFLOW_INFRA_FOLDER}/logs ${AIRFLOW_INFRA_FOLDER}/plugins ${AIRFLOW_INFRA_FOLDER}/.env
@ cp requirements.txt ./infra/airflow/
@ cp -r ted_sws ./infra/airflow/
@ cp -r dags ./infra/airflow/


build-airflow: guard-ENVIRONMENT create-env-airflow build-externals
Expand Down
8 changes: 6 additions & 2 deletions infra/airflow-cluster/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ COPY requirements.txt /opt/airflow

# working in the /opt/airflow
WORKDIR /opt/airflow
RUN mkdir -p ./.rmlmapper
RUN mkdir -p ./.rmlmapper ./dags ./ted_sws

COPY ted_sws /opt/airflow/ted_sws

COPY dags /opt/airflow/dags

RUN wget -c https://github.com/RMLio/rmlmapper-java/releases/download/v6.2.2/rmlmapper-6.2.2-r371-all.jar -O ./.rmlmapper/rmlmapper.jar


RUN wget -c https://github.com/Saxonica/Saxon-HE/releases/download/SaxonHE10-9/SaxonHE10-9J.zip -P .saxon/
RUN cd .saxon && unzip SaxonHE10-9J.zip && rm -rf SaxonHE10-9J.zip


RUN mkdir -p ./.limes
RUN wget -c https://github.com/dice-group/LIMES/releases/download/1.7.9/limes.jar -P ./.limes

Expand Down
7 changes: 6 additions & 1 deletion infra/airflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ COPY requirements.txt /opt/airflow

# working in the /opt/airflow
WORKDIR /opt/airflow
RUN mkdir -p ./.rmlmapper ./dags ./ted_sws ./temp
RUN mkdir -p ./.rmlmapper ./dags ./ted_sws

COPY ted_sws /opt/airflow/ted_sws

COPY dags /opt/airflow/dags

RUN wget -c https://github.com/RMLio/rmlmapper-java/releases/download/v6.2.2/rmlmapper-6.2.2-r371-all.jar -O ./.rmlmapper/rmlmapper.jar


Expand Down

0 comments on commit a857375

Please sign in to comment.