summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2022-07-30 01:50:45 +0200
committerMiloslav Trmač <mitr@redhat.com>2022-07-30 01:54:22 +0200
commit68463278e3b22a03fa7a711f4993381747e5e2fc (patch)
treebcdfa10de06ab1fc65335edc47a12e61630a96ea /hack
parentfed326d8a6f8d4f7dc490099b29d51fc1754789f (diff)
downloadpodman-68463278e3b22a03fa7a711f4993381747e5e2fc.tar.gz
podman-68463278e3b22a03fa7a711f4993381747e5e2fc.tar.bz2
podman-68463278e3b22a03fa7a711f4993381747e5e2fc.zip
Use httpasswd from the surrouding OS instead of the registry image
htpasswd is no longer included in docker.io/library/distribution after 2.7.0, per https://github.com/docker/distribution-library-image/issues/107 , and we want to upgrade to a recent version. At least system tests currently execute htpasswd from the OS, so it seems that it is likely to be available. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'hack')
-rwxr-xr-xhack/podman-registry6
1 files changed, 2 insertions, 4 deletions
diff --git a/hack/podman-registry b/hack/podman-registry
index f6a266883..84faafb48 100755
--- a/hack/podman-registry
+++ b/hack/podman-registry
@@ -197,13 +197,11 @@ function do_start() {
# Store credentials where container will see them. We can't run
# this one via must_pass because we need its stdout.
- podman run --rm \
- --entrypoint htpasswd ${PODMAN_REGISTRY_IMAGE} \
- -Bbn ${PODMAN_REGISTRY_USER} ${PODMAN_REGISTRY_PASS} \
+ htpasswd -Bbn ${PODMAN_REGISTRY_USER} ${PODMAN_REGISTRY_PASS} \
> $AUTHDIR/htpasswd
if [ $? -ne 0 ]; then
rm -rf ${PODMAN_REGISTRY_WORKDIR}
- die "Command failed: podman run [htpasswd]"
+ die "Command failed: htpasswd"
fi
# In case someone needs to debug