From: Kai Moritz Date: Sat, 7 Oct 2023 21:14:43 +0000 (+0200) Subject: cub repariert (wurde durch Einbindung des REHL-Repos gestört) X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ce5b533f2de9511d71801d65cac435c6f51ba128;p=demos%2Fkafka%2Ftraining cub repariert (wurde durch Einbindung des REHL-Repos gestört) --- diff --git a/Dockerfile b/Dockerfile index 34dbd9e..5e18801 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,7 @@ USER root 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 && \ @@ -54,15 +53,14 @@ FROM confluentinc/cp-kafka-connect:${VERSION} 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/ diff --git a/README.sh b/README.sh index 58068ed..aa3c6a7 100755 --- a/README.sh +++ b/README.sh @@ -1,4 +1,4 @@ #!/bin/sh docker build -t juplo/toolbox . -docker run --rm juplo/toolbox ls /usr/local/bin +docker run --rm juplo/toolbox sh -c "ls /usr/local/bin; http --version ; http ; cub"