openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
132 stars 183 forks source link

Feature Request: Interpret zypper --recommends properly in Dockerfile builds #948

Open Werkov opened 1 year ago

Werkov commented 1 year ago

Container builds in OBS with Dockerfile don't run with the same repositories as if the commands were run manually. OBS parses the Dockerfile internaly and creates a temporary repo with preloaded build deps. An understandable default for container images is solver.onlyRequires=false, however, some packages may be desired with zypper in --recommends.

OBS should preload the recommended deps (transitive closure) and let the zypper running inside container during build decide the resolution (subset of the closure may be installed).