Creating a obs service to extract the licenses of the packages inside a container
Hi list,
I wanted to write an obs-service, that would parse the $pkgname.packages
file and set the `org.opencontainers.image.licenses` label of the
created container.
Unfortunately I have a chicken-or-egg problem here: the .packages file
is created once the build is finished, but I'd like to modify the
Dockerfile or kiwi.xml before the build starts so that I don't have to
mess with the created container image itself.
I have thought about not using the .packages file and instead to grab
the licenses from the rpms from current build root, but that doesn't
work either, because this contains all the build time dependencies and
not just the packages inside the container.
Does anyone know how I could get the licenses of the packages inside the
container before the build is started? Or maybe how I could simply
modify the label of an existing container, without restarting the build?
Thanks in advance,
Dan
--
Dan Čermák
participants (1)
-
Dan Čermák