From 8a664856cddd0a948603c578949981c2c6482530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 19 Jun 2020 17:43:54 +0200 Subject: [PATCH] Run htpasswd from our build-container instead of registry:2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit registry:2 no longer contains htpasswd. Also don't use log_and_run ... >> $file because that will cause the command to be logged to $file. Signed-off-by: Miloslav Trmač --- Dockerfile | 2 ++ systemtest/helpers.bash | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d5d054b..8248a222 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ RUN dnf -y update && dnf install -y make git golang golang-github-cpuguy83-md2ma # gpgme bindings deps libassuan-devel gpgme-devel \ gnupg \ + # htpasswd for system tests + httpd-tools \ # OpenShift deps which tar wget hostname util-linux bsdtar socat ethtool device-mapper iptables tree findutils nmap-ncat e2fsprogs xfsprogs lsof docker iproute \ bats jq podman runc \ diff --git a/systemtest/helpers.bash b/systemtest/helpers.bash index ee217e1c..7884acf9 100644 --- a/systemtest/helpers.bash +++ b/systemtest/helpers.bash @@ -314,8 +314,7 @@ start_registry() { fi if ! egrep -q "^$testuser:" $AUTHDIR/htpasswd; then - log_and_run $PODMAN run --rm --entrypoint htpasswd $REGISTRY_FQIN \ - -Bbn $testuser $testpassword >> $AUTHDIR/htpasswd + htpasswd -Bbn $testuser $testpassword >> $AUTHDIR/htpasswd fi reg_args+=(