Skip to content

Commit

Permalink
MET-6328 Move plugin installation to different docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruufuus committed Feb 26, 2025
1 parent dd3c9f8 commit 9955795
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docker/flink-node-with-application/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
FROM flink-node-poc:latest

MAINTAINER PSNC

ENV FLINK_HOME=/opt/flink \
FLINK_VERSION=1.20.0 \
FLINK_S3_PRESTO_URL=https://repo1.maven.org/maven2/org/apache/flink/flink-s3-fs-presto/$FLINK_VERSION/flink-s3-fs-presto-$FLINK_VERSIONI.jar

COPY ./docker/flink-node-with-application/flink-connector-cassandra_2.12-3.1.0-1.17.jar /opt/flink/lib/
COPY ./docker/flink-node-with-application/metrics-core-3.0.2.jar /opt/flink/lib/
COPY ./flinkPoCPG/target/flink-poc-postgres.jar /opt/flink/lib/

RUN mkdir -p $FLINK_HOME/plugins/s3-fs-presto
RUN wget $FLINK_S3_PRESTO_URL -O $FLINK_HOME/plugins/s3-fs-presto/flink-s3-fs-presto-$FLINK_VERSION.jar
RUN chown -R flink:flink $FLINK_HOME/plugins
3 changes: 0 additions & 3 deletions docker/flink_java21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ RUN set -ex; \
sed -i 's/taskmanager.bind-host: localhost/taskmanager.bind-host: 0.0.0.0/g' $FLINK_HOME/conf/config.yaml; \
sed -i '/taskmanager.host: localhost/d' $FLINK_HOME/conf/config.yaml;

RUN mkdir -p $FLINK_HOME/plugins/s3-fs-presto
RUN wget $FLINK_S3_PRESTO_URL -O $FLINK_HOME/plugins/s3-fs-presto/flink-s3-fs-presto-1.20.0.jar
RUN chown -R flink:flink $FLINK_HOME/plugins

# Configure container
COPY docker-entrypoint.sh /
Expand Down

0 comments on commit 9955795

Please sign in to comment.