Greetings,
I’ve been trying to use podman to build images on builds.sr.ht but not having a lot of luck. It appears the file used to configure registries (/etc/containers/registries.conf) doesn’t contain any registries. Is there a way to change this?
Thanks much,
Stephen.
On 2023-01-24 at 17:19-05:00, Stephen Castro-Starkey wrote:
> I’ve been trying to use podman to build images on builds.sr.ht> but not having a lot of luck. It appears the file used> to configure registries (/etc/containers/registries.conf)> doesn’t contain any registries. Is there a way to change this?
Could you please point to a reproducing build?
On 23-01-24 17:19:15, Stephen Castro-Starkey wrote:
> Greetings,> > I’ve been trying to use podman to build images on builds.sr.ht but not having a lot of luck. It appears the file used to configure registries (/etc/containers/registries.conf) doesn’t contain any registries. Is there a way to change this?
I think that's a problem with the distribution not with sourcehut. (It
would be probably helpful to tell us which one you are using, to
determine if it's an actual bug with the image.)
For my pipelines I added a setup task that creates the pre-requisits[1],
but that's for Archlinux, which as far as I can see has a
registries.conf file, even though it's empty.
I would suggest you do something similar.
I'm not sure it's OK to burden the people that are maintaining the
images with additional plumbing that they need to take care of.
[1] https://builds.sr.ht/api/jobs/925178/manifest
/Marius
Ok, so here’s the build I’m talking about: https://builds.sr.ht/~coreagile/job/928373
It appears as if the user that runs the build doesn’t have permissions to change the configuration file. It’s likely owned by root. After reading the docs, I can’t see a way to mutate the image safely. I assume I’ll have to build my own image?
> On Jan 25, 2023, at 4:30 AM, Marius Orcsik <marius@federated.id> wrote:> > On 23-01-24 17:19:15, Stephen Castro-Starkey wrote:>> Greetings,>> >> I’ve been trying to use podman to build images on builds.sr.ht but not having a lot of luck. It appears the file used to configure registries (/etc/containers/registries.conf) doesn’t contain any registries. Is there a way to change this?> > I think that's a problem with the distribution not with sourcehut. (It> would be probably helpful to tell us which one you are using, to> determine if it's an actual bug with the image.)> > For my pipelines I added a setup task that creates the pre-requisits[1],> but that's for Archlinux, which as far as I can see has a> registries.conf file, even though it's empty.> > I would suggest you do something similar.> > I'm not sure it's OK to burden the people that are maintaining the> images with additional plumbing that they need to take care of.> > [1] https://builds.sr.ht/api/jobs/925178/manifest> > /Marius
On Wednesday, January 25th, 2023 at 14:59, Stephen Castro-Starkey <stephen@calmabiding.me> wrote:
> Ok, so here’s the build I’m talking about: https://builds.sr.ht/~coreagile/job/928373> > It appears as if the user that runs the build doesn’t have permissions to change the configuration file. It’s likely owned by root.
You'll need to use sudo to write to that file.