On 13.05.24 10:04 Dan Čermák wrote:
Johannes Kastl
writes: And then there's my talk from the openSUSE Conference 2023: https://www.youtube.com/watch?v=d9LTLzoJzJE (slides are here: https://github.com/dcermak/building-containers-in-obs)
Yes, I remembered that one. Was hoping we had a written summary of the topic, but might as well rewatch it. It was fun.
With the help of Dan's talk and slides I have successfully built two images in OBS. And I even got the second one building on top of the first. Apparently the long long registry URL that is shown for a container image on registry.opensuse.org is only useful for podman from the outside. Inside OBS, I could only reference an image in **the same project** by adding openSUSE:registry as a project in the containerfile build target:
<repository name="containerfile"> <path project="home:ojkastl_buildservice:containers:dumb-init" repository="15.6"/> <path project="home:ojkastl_buildservice:containers:helm-docs" repository="15.6"/> <path project="openSUSE:Registry" repository="standard"/> <path project="openSUSE:Containers:Leap:15.6" repository="containers"/> <arch>x86_64</arch> </repository>
The full path (used with podman) was not working. The path without the "registry.opensuse.org", i.e. "home/ojkastl_buildservice/containers/15.6/containerfile/ojkastl_buildservice/opensuse-leap-dumb-init" was not working. Using the tags from inside the image seems to work, but even then the images are sometimes blocked:
waiting for dod resources to appear: container:ojkastl_buildservice/opensuse-leap-dumb-init:15.5
https://build.opensuse.org/project/monitor/home:ojkastl_buildservice:contain...
Adding the registry project after openSUSE:Containers:Leap:15.6 lead to very funny errors with basic glibc dependencies missing for helm-docs. The documentation [here](https://opensource.suse.com/bci-docs/guides/building-on-top-of-bci/) states:
Skip this step if your image is in the same project and repository as the image that you are building.
Which obviously does not work, even if the prjconf and meta in the docus are similar to what I use. So, is there any documentation on this that I missed? Kind Regards, Johannes P.S. Have a lot of fun...