Change into tests/integration by running cd tests/integration
Run bash docker-build.sh or bash docker-push.sh (if local image is already built) while having set export USE_PODMAN=true under your shell .rc file.
Expected behavior
While having set export USE_PODMAN=true under your shell .rc file, all docker commands should be referencing podman commands instead, running podman instead of docker for the container engine.
Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
docker-build.sh failure:
docker-build.sh: line 24: docker: command not found
docker-push.sh failure:
docker-push.sh: line 22: docker: command not found
Additional context
Related Issues
1503
1426
Any workaround?
Manually changing all usages of docker under tests/integration/docker-build.sh and tests/integration/docker-push.sh while running locally with podman.
Suggestion on how to fix the bug
Either of the following fixes will resolve this bug:
The inclusion of build_registry.sh#L21 and build_registry.sh#L28 in tests/integration/docker-build.sh and tests/integration/docker-push.sh to support running the scripts with podman
or
Addition of podman specific scripts tests/integration/podman-build.sh and tests/integration/podman-push.sh
Which area this feature is related to?
/kind bug
Which area this bug is related to?
/area registry
Bug Summary
Describe the bug:
When using
bash docker-build.sh
andbash docker-push.sh
under registry-support, the script does not load thealias docker=podman
as whenbash build_registry.sh
is used: https://github.com/devfile/registry-support/blob/f66264f22310c3c93bf0c77db5f4cd4b560aba5e/build_registry.sh#L28To Reproduce:
tests/integration
by runningcd tests/integration
bash docker-build.sh
orbash docker-push.sh
(if local image is already built) while having setexport USE_PODMAN=true
under your shell .rc file.Expected behavior
While having set
export USE_PODMAN=true
under your shell .rc file, alldocker
commands should be referencingpodman
commands instead, runningpodman
instead ofdocker
for the container engine.Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable
docker-build.sh
failure:docker-push.sh
failure:Additional context
Related Issues
1503
1426
Any workaround?
Manually changing all usages of
docker
undertests/integration/docker-build.sh
andtests/integration/docker-push.sh
while running locally withpodman
.Suggestion on how to fix the bug
Either of the following fixes will resolve this bug:
tests/integration/docker-build.sh
andtests/integration/docker-push.sh
to support running the scripts withpodman
or
podman
specific scriptstests/integration/podman-build.sh
andtests/integration/podman-push.sh