Skip to content

Commit 9549b07

Browse files
committed
Enhance Dockerfile for release by adding runtime dependencies for Kafka, including Kerberos and SASL libraries. Also, include CentOS-compiled SASL libraries for compatibility with librdkafka.
Change-Id: I933fc78ef15d4cf2d6c73131fe2f35e1b42e7ac7 Co-developed-by: Cursor <noreply@cursor.com>
1 parent 8dcdc24 commit 9549b07

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docker/Dockerfile_release

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ RUN chown -R $(whoami) /usr/local/loongcollector/ && \
3333
chmod 755 /usr/local/loongcollector/loongcollector && \
3434
mkdir -p /usr/local/loongcollector/data/checkpoint
3535

36+
# Install runtime dependencies (Kerberos/SASL libs for Kafka)
37+
RUN apt-get update && apt-get install -y \
38+
libsasl2-2 \
39+
libsasl2-modules \
40+
libsasl2-modules-gssapi-mit \
41+
libkrb5-3 \
42+
libk5crypto3 \
43+
libgssapi-krb5-2 && \
44+
apt-get clean && rm -rf /var/lib/apt/lists/*
45+
46+
# Provide CentOS-compiled SASL libraries for librdkafka (expects libsasl2.so.3)
47+
COPY --from=build /usr/lib64/libsasl2.so.3 /usr/lib/x86_64-linux-gnu/
48+
COPY --from=build /usr/lib64/libsasl2.so.3.0.0 /usr/lib/x86_64-linux-gnu/
49+
COPY --from=build /usr/lib64/sasl2 /usr/lib/x86_64-linux-gnu/sasl2
50+
3651
WORKDIR /usr/local/loongcollector
3752
RUN mkdir -p /usr/local/loongcollector/conf/instance_config/local
3853
RUN mkdir -p /usr/local/loongcollector/log

0 commit comments

Comments
 (0)