Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
etsauer opened this issue May 28, 2024 · 0 comments

Comments

@etsauer
Copy link
Contributor

etsauer commented May 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant