ENV KAFKACAT_VERSION="1.7.1"
RUN \
echo "Preparing the build-environment ....." && \
- dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
- dnf install -y $BUILD_PACKAGES && \
+ yum install -y $BUILD_PACKAGES && \
echo "Building kafkacat ....." && \
git clone https://github.com/edenhill/kafkacat && \
cd kafkacat && \
USER root
RUN \
echo "Installing runtime dependencies for SSL and SASL support ...." && \
- microdnf install dnf && \
- dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
- dnf install -y ca-certificates && \
+ yum install -y ca-certificates && \
echo "Installing usefull tools" && \
- dnf install -y curl wget nc less httpie jq -y && \
- dnf install httpie && \
+ yum install -y curl wget nc less jq -y && \
echo "===> clean up ..." && \
- dnf clean all && \
- rm -rf /tmp/*
+ yum clean all && \
+ rm -rf /tmp/* /etc/yum.repos.d/confluent.repo && \
+ curl https://packages.httpie.io/binaries/linux/http-latest --output /usr/local/bin/http && \
+ chmod a+x /usr/local/bin/http
COPY --from=0 /build/kafkacat/kcat /usr/local/bin/
# COPY --from=0 /build/normcat /usr/local/bin/