Thomas Bechtold
Hi,
On 8/13/19 1:35 PM, Thorsten Kukuk wrote:
On Tue, Aug 13, Thomas Bechtold wrote:
- is there already some sort of idea/strategy if/how containers for specific packages (like mariadb, rabbitmq, ...) could be maintained for openSUSE:Factory ?
Currently, it works this way: - create a devel project for the container - create a correct *.kiwi file for the container with correct labels - submit to openSUSE:Factory - tell the team, that they should be released as official containers on registry.opensuse.org - everytime, we release a new openSUSE Tumbleweed snapshot, containers, which have changed (base containers, RPMs part of the container, ...), we will release a new version of this container into the registry.
Is it possible (like for RPM packages) to build a container for different distros (eg. SLE_15_SP1 and openSUSE_Leap_15.1) within the same OBS package? Maybe with kiwi profiles and multibuild? Or what's the recommended way to maintain containers for multiple distros? I saw that the CaaSP/kubic containers use a pre-checkin.sh script with sed to create .kiwi files for different distros and keep theses kiwi files in different OBS packages. SES is doing something similar (but with xsl instead of pre-checkin.sh/sed)
I haven't found a simple way how to achieve this (haven't tried too hard though), but I'm afraid that even if you achieve that, it'll be very painful to use in practice. I have the feeling that KIWI works best on OBS if you have one project for each distribution that you are building, define the repositories in OBS and use OBS' repositories inside your KIWI image (that's also the official recommendation: https://osinside.github.io/kiwi/building/build_in_buildservice.html). Creating packages for different distros in the same project resulted for me in an overly complex project configuration to "fix" all the "unresolvable: have choice for SOMEPACKAGE: SOMEPAKAGE_1 SOMEPACKAGE_2" errors. Building a container for different distros from the same package, will probably make this even worse... Cheers, Dan