Skip to content

Index server build does not load podman alias #1426

@michael-valdron

Description

@michael-valdron

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 index/server/build.sh under registry-support, the script does not load the alias docker=podman when the user has this setup as it does with bash build_registry.sh: https://github.com/devfile/registry-support/blob/f66264f22310c3c93bf0c77db5f4cd4b560aba5e/build_registry.sh#L28

To Reproduce: Run bash index/server/build.sh 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

index/server/build.sh: line 25: docker: command not found

Additional context

Related Issues

Any workaround?

Manually changing all usages of docker under index/server/build.sh while running locally and standalone from build_registry.sh.

Suggestion on how to fix the bug

The inclusion of build_registry.sh#L21 and build_registry.sh#L28 in index/server/build.sh to support running the script standalone with podman.

Metadata

Metadata

Assignees

Labels

area/registryDevfile registry for stacks and infrastructurekind/bugSomething isn't working

Type

No type

Projects

Status

Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions