From ce5b533f2de9511d71801d65cac435c6f51ba128 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 7 Oct 2023 23:14:43 +0200 Subject: [PATCH] =?utf8?q?cub=20repariert=20(wurde=20durch=20Einbindung=20?= =?utf8?q?des=20REHL-Repos=20gest=C3=B6rt)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Dockerfile | 16 +++++++--------- README.sh | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) 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" -- 2.20.1