Skip to content

Commit 574f897

Browse files
Create Dockerfile
1 parent 56524dc commit 574f897

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

infra/airflow-cluster/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM apache/airflow:2.2.5-python3.8
2+
3+
# quick sudo
4+
USER root
5+
RUN apt-get update && apt-get install make && apt-get install build-essential git -y && apt-get install -y wget && apt-get install -y unzip
6+
RUN apt install -y default-jre
7+
8+
# back to normal user
9+
USER airflow
10+
11+
# requirements.txt shall be made availble from the **ted-sws** GitHub repository
12+
COPY requirements.txt /opt/airflow
13+
14+
# working in the /opt/airflow
15+
WORKDIR /opt/airflow
16+
RUN mkdir -p ./.rmlmapper
17+
RUN wget -c https://api.bitbucket.org/2.0/repositories/Dragos0000/rml-mapper/src/master/rmlmapper.jar -P ./.rmlmapper
18+
19+
20+
RUN wget -c https://kumisystems.dl.sourceforge.net/project/saxon/Saxon-HE/10/Java/SaxonHE10-6J.zip -P .saxon/
21+
RUN cd .saxon && unzip SaxonHE10-6J.zip && rm -rf SaxonHE10-6J.zip
22+
23+
24+
RUN pip install --upgrade pip
25+
RUN pip install --no-cache-dir -r requirements.txt --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.2.5/constraints-no-providers-3.8.txt"

0 commit comments

Comments
 (0)