-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.client
More file actions
28 lines (20 loc) · 928 Bytes
/
Dockerfile.client
File metadata and controls
28 lines (20 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Dockerfile.client
FROM flink:1.18.1-scala_2.12
# Installer Python 3, pip et venv
RUN apt-get update && \
apt-get install -y python3 python3-pip python3-venv wget && \
ln -s /usr/bin/python3 /usr/bin/python
# Mettre à jour pip (optionnel mais recommandé)
RUN python -m pip install --upgrade pip
# Installer PyFlink version 1.18.1
RUN pip install --no-cache-dir apache-flink==1.18.1
# Ensure /opt/flink/lib exists
RUN mkdir -p /opt/flink/lib
# Download and install JDBC connector and PostgreSQL driver
RUN wget https://repo1.maven.org/maven2/org/apache/flink/flink-connector-jdbc/3.2.0-1.18/flink-connector-jdbc-3.2.0-1.18.jar -O /opt/flink/lib/flink-connector-jdbc.jar && \
wget https://jdbc.postgresql.org/download/postgresql-42.7.5.jar -O /opt/flink/lib/postgresql-42.7.5.jar && \
ls -l /opt/flink/lib
# Définir le répertoire de travail
WORKDIR /opt/flink
# Commande par défaut
CMD ["/bin/bash"]