Re: Can I build containers based on hub.docker.com images?
Martin Hooper <martin@mjhooper.co.uk> writes:
On 16/07/2024 09:18, Dan Čermák wrote:
Martin Hooper <martin@mjhooper.co.uk> writes:
Can I build docker images that use images hosted on hub.docker.com?
Maybe. The buildservice supports to build against registries that have been setup as projects. At the moment I am aware of: - registry.suse.com as SUSE:Registry - registry.opensuse.org as openSUSE:Registry (albeit this one is kinda pointless, as registry.opensuse.org is OBS itself)
and the one you're looking for as Docker:Registry [1].
Thanks Dan - I put them both in as:
<repository name="containers_arm" rebuild="local"> <path project="Docker:Registry" repository="standard"/> <path project="openSUSE:Templates:Images:Tumbleweed" repository="containers_arm"/> <arch>aarch64</arch> </repository> <repository name="containers" rebuild="local"> <path project="Docker:Registry" repository="standard"/> <path project="openSUSE:Templates:Images:Tumbleweed" repository="containers"/> <arch>x86_64</arch> </repository>
and the dockerfile from line is:
FROM library/alpine:latest
and it is blocked saying it is waiting for container to appear but it looks like it never does...
If I had to guess, then I'd blame dockerhub rate limiting. But this won't work anyway, as the buildservice cannot build container images based on Alpine (it does not support the apk package manager). Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Software Solutions Germany GmbH Frankenstr. 146 90461 Nürnberg Germany www.suse.com Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg)
participants (1)
-
Dan Čermák