Just use kafkacat system package
-FROM debian:jessie
+FROM debian:stable
ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
@@ -6,30 +6,17 @@ ARG BUILD_NUMBER=-1
LABEL io.confluent.docker.build.number=$BUILD_NUMBER
LABEL io.confluent.docker=true
-WORKDIR /build
-ENV VERSION=1.3.0-1
-
-ENV BUILD_PACKAGES="build-essential cmake python git curl zlib1g-dev libsasl2-dev libssl-dev "
RUN echo "Building kafkacat ....." \
&& apt-get update -y \
- && DEBIAN_FRONTEND=noninteractive apt-get install -y $BUILD_PACKAGES \
- && git clone https://github.com/edenhill/kafkacat \
- && cd kafkacat \
- && git checkout tags/debian/$VERSION \
- && ./bootstrap.sh \
- && make install \
- && cd .. && rm -rf kafkacat-debian-$VERSION \
- && AUTO_ADDED_PACKAGES=`apt-mark showauto` \
- && apt-get remove --purge -y $BUILD_PACKAGES $AUTO_ADDED_PACKAGES \
- \
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y kafkacat \
&& echo "Installing runtime dependencies for SSL and SASL support ...." \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
openssl \
- libssl1.0.0 \
+ libssl1.1 \
libsasl2-2 \
libsasl2-modules-gssapi-mit \
krb5-user \
krb5-config \
- && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
CMD ["kafkacat"]
