Re: Can I build containers based on hub.docker.com images?
![](https://seccdn.libravatar.org/avatar/e6dc8afd12f42302ae7b5ea72e4dd686.jpg?s=120&d=mm&r=g)
Martin Hooper <martin@mjhooper.co.uk> writes:
On 16/07/2024 13:53, Dan Čermák wrote:
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
Ah thought that might be the case...
No, OBS can only build containers based on distributions that it supports (this includes Ubuntu/Debian based ones, RPM based ones and Archlinux). Also, the build has to run in full network isolation, i.e. no `curl | sudo bash`. 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)
![](https://seccdn.libravatar.org/avatar/84ee0bcf221e4fb2b4741908022b82fb.jpg?s=120&d=mm&r=g)
On Dienstag, 16. Juli 2024, 16:44:25 CEST Dan Čermák wrote:
Martin Hooper <martin@mjhooper.co.uk> writes:
On 16/07/2024 13:53, Dan Čermák wrote:
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
Ah thought that might be the case...
No, OBS can only build containers based on distributions that it supports (this includes Ubuntu/Debian based ones, RPM based ones and Archlinux).
However, it might be easy to add support for apk (have not looked inside). 95% of the work is this: https://github.com/openSUSE/obs-build/blob/master/HOWTO.add_another_format -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
![](https://seccdn.libravatar.org/avatar/84ee0bcf221e4fb2b4741908022b82fb.jpg?s=120&d=mm&r=g)
On Dienstag, 16. Juli 2024, 17:08:57 CEST Adrian Schröter wrote:
On Dienstag, 16. Juli 2024, 16:44:25 CEST Dan Čermák wrote:
Martin Hooper <martin@mjhooper.co.uk> writes:
On 16/07/2024 13:53, Dan Čermák wrote:
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
Ah thought that might be the case...
No, OBS can only build containers based on distributions that it supports (this includes Ubuntu/Debian based ones, RPM based ones and Archlinux).
However, it might be easy to add support for apk (have not looked inside).
95% of the work is this:
https://github.com/openSUSE/obs-build/blob/master/HOWTO.add_another_format
Independend of this, you can build indeed against any container from docker hub, when you add Docker:Registry standard as project and repository to your path list of your repo. Don't add it at last though. However, as Dan rightfully pointed out, you will run into issues with Alpine images though. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
participants (2)
-
Adrian Schröter
-
Dan Čermák