Skip to content

common-utils fails to build when base image is almalinux-[89]-minimal or rocky-[89]minimal #810

Description

@jdputschadi

While submitting a PR adding support for the RHEL OS family, we get a failing test: https://github.com/devcontainers/features/actions/runs/7671052872/job/20908644762?pr=782#step:4:7694:

[dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=common-utils_0,target=/tmp/build-features-src/common-utils_0     cp -ar /tmp/build-features-src/common-utils_0 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/common-utils_0  && cd /tmp/dev-container-features/common-utils_0  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/common-utils_0:
0.212     INSTALLOHMYZSH="true"
0.212     INSTALLOHMYZSHCONFIG="true"
0.212     UPGRADEPACKAGES="true"
0.212     USERNAME="automatic"
0.212     USERUID="automatic"
0.212     USERGID="automatic"
0.212     NONFREEPACKAGES="false"
0.212 ===========================================================================
0.241 ./main.sh: line 217: yum: command not found
0.241 ERROR: Feature "Common Utilities" (Unknown) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/common-utils for help troubleshooting this error.
------

This is been tracked down to the use of microdnf instead of yum or dnf in minimal images.

I will be submitting a PR to fix this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions