Skip to content

Commit 6cf9d0f

Browse files
authored
fix(kafka): Make image for version 4.1.0 build again (#1334)
fix: make image for kafka 4 build again
1 parent c71d6d5 commit 6cf9d0f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

kafka/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ COPY --chown=${STACKABLE_USER_UID}:0 kafka/stackable/patches/${PRODUCT_VERSION}
2121
COPY --chown=${STACKABLE_USER_UID}:0 --from=patched-reload4j /stackable/.m2/repository /stackable/patched-reload4j-libs
2222

2323
RUN <<EOF
24-
mkdir -p /stackable/.m2/repository
25-
cp -r /stackable/patched-reload4j-libs/* /stackable/.m2/repository
24+
# TODO: remove this later.
25+
# reload4j jars are only needed of Kafka 3.x
26+
case "${PRODUCT_VERSION}" in
27+
3*)
28+
mkdir -p /stackable/.m2/repository
29+
cp -r /stackable/patched-reload4j-libs/* /stackable/.m2/repository
30+
esac
2631

2732
cd "$(/stackable/patchable --images-repo-root=src checkout kafka ${PRODUCT_VERSION})"
2833

kafka/boil-config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ java-base = "23"
2525
java-devel = "23"
2626
"kafka/kcat" = "1.7.0"
2727
"kafka/kafka-opa-plugin" = "1.5.1"
28+
# TODO: this is not used in this version but it's added
29+
# to avoid major changes to the Kafka image build on short notice.
30+
# Building this image is quick and in CI should not even be noticed.
31+
"shared/reload4j" = "1.2.25"
2832

2933
[versions."4.1.0".build-arguments]
3034
scala-version = "2.13"

0 commit comments

Comments
 (0)