Skip to content

nested-podman-fedora image won't build using the override system as developer-base module is incompatible #11

@etsauer

Description

@etsauer

When trying to build the devspaces-nested-podman-fedora image from this repo, we get the following error:

$ cekit build --overrides images/nested-fedora.yaml podman
subprocess exited with status 1
subprocess exited with status 1
Error: building at STEP "RUN dnf --setopt=tsflags=nodocs --setopt=install_weak_deps=0 install -y compat-openssl11 diffutils git iproute jq less libbrotli lsof man-db nano procps-ng perl-Digest-SHA net-tools openssh-clients rsync socat sudo time vim-enhanced wget zip buildah skopeo podman-docker fuse-overlayfs slirp4netns             && rpm -q ${OPENSSL_PKG} diffutils git iproute jq less libbrotli lsof man-db nano procps-ng perl-Digest-SHA net-tools openssh-clients rsync socat sudo time vim-enhanced wget zip buildah skopeo podman-docker fuse-overlayfs slirp4netns": exit status 1
2024-05-28 19:00:07,521 tools.py:359        ERROR Command '['/usr/bin/podman', 'build', '--squash', '-t', 'devspaces-nested-podman-fedora:fedora39', '-t', 'devspaces-nested-podman-fedora:latest', 'target/image']' returned non-zero exit status 1. Command stdout is 'None' with stderr 'None'
2024-05-28 19:00:07,522 cli.py:544        ERROR Could not run podman ['/usr/bin/podman', 'build', '--squash', '-t', 'devspaces-nested-podman-fedora:fedora39', '-t', 'devspaces-nested-podman-fedora:latest', 'target/image']

This is happening because the image is overriding a base image.yaml which is built using UBI, but here we are overriding the base with a fedora base. In fedora-land some of the package names are a bit different, and I need a way to override the package names used in the module to fix this. Currently I don't have a solution to this, but I've opened an issue with CEKit to see if a solution exists, or request one: cekit/cekit#915

Another option would be to somehow replace the developer-base image with @cgruver 's original base-fedora module, but I can't figure out how to disable a module from an image override.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions