Skip to content

Commit df689fc

Browse files
authored
Merge pull request #204 from TouK/missing-bitnami-kafka-fix
Missing bitnami/kafka image fix
2 parents 51e6877 + 67788ba commit df689fc

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ services:
166166
### KAFKA-related services:
167167

168168
kafka:
169-
image: bitnami/kafka:3.7.0
169+
image: bitnamilegacy/kafka:3.7.0
170170
restart: unless-stopped
171171
hostname: nu-kafka
172172
environment:
@@ -186,7 +186,7 @@ services:
186186
memory: 512M
187187

188188
schema-registry:
189-
image: bitnami/schema-registry:7.6.1
189+
image: bitnamilegacy/schema-registry:7.6.1
190190
restart: unless-stopped
191191
environment:
192192
SCHEMA_REGISTRY_LISTENERS: "http://0.0.0.0:8081"
@@ -236,7 +236,7 @@ services:
236236
build:
237237
context: ./flink/
238238
args:
239-
FLINK_VERSION: "1.19.1-scala_2.12-java11"
239+
TOUK_FLINK_VERSION: "1.1.4-flink1.20.2-scala_2.12"
240240
no_cache: true
241241
restart: unless-stopped
242242
command: jobmanager
@@ -257,7 +257,7 @@ services:
257257
build:
258258
context: ./flink/
259259
args:
260-
FLINK_VERSION: "1.19.1-scala_2.12-java11"
260+
TOUK_FLINK_VERSION: "1.1.4-flink1.20.2-scala_2.12"
261261
no_cache: true
262262
restart: unless-stopped
263263
command: taskmanager

flink/Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
ARG FLINK_VERSION="FLINK_VERSION_IS_UNDEFINED"
1+
ARG TOUK_FLINK_VERSION
22

3-
FROM curlimages/curl:8.9.1 AS lib_provider
4-
5-
# Adding custom libraries ('add other libraries' section):
6-
# https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/standalone/docker/#further-customization
7-
WORKDIR /libs
8-
RUN curl -k --output /libs/postgresql-42.6.0.jar https://repo1.maven.org/maven2/org/postgresql/postgresql/42.6.0/postgresql-42.6.0.jar
9-
10-
FROM flink:${FLINK_VERSION}
3+
FROM touk/flink:${TOUK_FLINK_VERSION}
114

125
USER root
136
RUN echo '#!/bin/sh' > /ex-docker-entrypoint.sh && \
147
echo 'export FLINK_PROPERTIES=$(cat /opt/flink/conf/flink-properties.yml) && /docker-entrypoint.sh "$@"' >> /ex-docker-entrypoint.sh && \
158
chmod +x /ex-docker-entrypoint.sh
16-
COPY --from=lib_provider /libs/ /opt/flink/lib/
179

1810
USER flink
11+
COPY flink-properties.yml /opt/flink/conf/
1912
RUN mkdir -p /opt/flink/data && \
2013
chmod -R 777 /opt/flink/data
2114

22-
COPY flink-properties.yml /opt/flink/conf/
23-
2415
VOLUME /opt/flink/data
2516

2617
ENTRYPOINT [ "/ex-docker-entrypoint.sh" ]

flink/flink-properties.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobmanager.memory.jvm-metaspace.size: 500m
88

99
state.backend.type: filesystem
1010
state.checkpoints.dir: file:///opt/flink/data/checkpoints
11-
state.savepoints.dir: file:///opt/flink/data/savepoints
11+
execution.checkpointing.savepoint-dir: file:///opt/flink/data/savepoints
1212

1313
#Below are base settings for rocksdb metrics, that can be used for grafana dashboards
1414
state.backend.rocksdb.metrics.estimate-num-keys: true

0 commit comments

Comments
 (0)