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 27, 2025
1 parent dd3c9f8 commit 0a28ff8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker/flink-node-with-application/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM flink-node-poc:latest

MAINTAINER PSNC

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/
COPY ./flinkPoCPG/target/flink-poc-postgres.jar /opt/flink/lib/
8 changes: 8 additions & 0 deletions docker/flink-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ FROM flink:1.20.0-java21_poc

MAINTAINER PSNC

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

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

RUN apt-get update && apt-get install -y \
xz-utils \
telnet \
Expand Down
4 changes: 0 additions & 4 deletions docker/flink_java21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ RUN set -ex; \
# Configure Flink version
ENV FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-1.20.0/flink-1.20.0-bin-scala_2.12.tgz \
FLINK_ASC_URL=https://downloads.apache.org/flink/flink-1.20.0/flink-1.20.0-bin-scala_2.12.tgz.asc \
FLINK_S3_PRESTO_URL=https://repo1.maven.org/maven2/org/apache/flink/flink-s3-fs-presto/1.20.0/flink-s3-fs-presto-1.20.0.jar \
GPG_KEY=B2D64016B940A7E0B9B72E0D7D0528B28037D8BC \
CHECK_GPG=true

Expand Down Expand Up @@ -88,9 +87,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 0a28ff8

Please sign in to comment.