mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
Merge pull request #6390 from edsantiago/registry_show_errors
podman-registry: fix lost credentials
This commit is contained in:
4
Makefile
4
Makefile
@ -318,7 +318,7 @@ localunit: test/goecho/goecho varlink_generate
|
|||||||
ginkgo \
|
ginkgo \
|
||||||
-r \
|
-r \
|
||||||
$(TESTFLAGS) \
|
$(TESTFLAGS) \
|
||||||
--skipPackage test/e2e,pkg/apparmor,test/endpoint,pkg/bindings \
|
--skipPackage test/e2e,pkg/apparmor,test/endpoint,pkg/bindings,hack \
|
||||||
--cover \
|
--cover \
|
||||||
--covermode atomic \
|
--covermode atomic \
|
||||||
--tags "$(BUILDTAGS)" \
|
--tags "$(BUILDTAGS)" \
|
||||||
@ -326,7 +326,7 @@ localunit: test/goecho/goecho varlink_generate
|
|||||||
|
|
||||||
.PHONY: ginkgo
|
.PHONY: ginkgo
|
||||||
ginkgo:
|
ginkgo:
|
||||||
ginkgo -v $(TESTFLAGS) -tags "$(BUILDTAGS)" $(GINKGOTIMEOUT) -cover -flakeAttempts 3 -progress -trace -noColor -nodes 3 -debug test/e2e/.
|
ginkgo -v $(TESTFLAGS) -tags "$(BUILDTAGS)" $(GINKGOTIMEOUT) -cover -flakeAttempts 3 -progress -trace -noColor -nodes 3 -debug test/e2e/. hack/.
|
||||||
|
|
||||||
.PHONY: ginkgo-remote
|
.PHONY: ginkgo-remote
|
||||||
ginkgo-remote:
|
ginkgo-remote:
|
||||||
|
@ -14,7 +14,7 @@ PODMAN_REGISTRY_PASS=
|
|||||||
PODMAN_REGISTRY_PORT=
|
PODMAN_REGISTRY_PORT=
|
||||||
|
|
||||||
# Podman binary to run
|
# Podman binary to run
|
||||||
PODMAN=${PODMAN:-$(type -p podman)}
|
PODMAN=${PODMAN:-$(dirname $0)/../bin/podman}
|
||||||
|
|
||||||
# END defaults
|
# END defaults
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -176,11 +176,16 @@ function do_start() {
|
|||||||
-out ${AUTHDIR}/domain.crt \
|
-out ${AUTHDIR}/domain.crt \
|
||||||
-subj "/C=US/ST=Foo/L=Bar/O=Red Hat, Inc./CN=localhost"
|
-subj "/C=US/ST=Foo/L=Bar/O=Red Hat, Inc./CN=localhost"
|
||||||
|
|
||||||
# Store credentials where container will see them
|
# Store credentials where container will see them. We can't run
|
||||||
must_pass podman run --rm \
|
# this one via must_pass because we need its stdout.
|
||||||
--entrypoint htpasswd ${PODMAN_REGISTRY_IMAGE} \
|
podman run --rm \
|
||||||
-Bbn ${PODMAN_REGISTRY_USER} ${PODMAN_REGISTRY_PASS} \
|
--entrypoint htpasswd ${PODMAN_REGISTRY_IMAGE} \
|
||||||
> $AUTHDIR/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]"
|
||||||
|
fi
|
||||||
|
|
||||||
# In case someone needs to debug
|
# In case someone needs to debug
|
||||||
echo "${PODMAN_REGISTRY_USER}:${PODMAN_REGISTRY_PASS}" \
|
echo "${PODMAN_REGISTRY_USER}:${PODMAN_REGISTRY_PASS}" \
|
||||||
|
Reference in New Issue
Block a user