[Buildroot] [PATCH v1 3/3] package/genuinetools-img: new host and target package

Christian Stewart christian at paral.in
Tue May 4 22:03:31 UTC 2021


Hi Yann,

On Tue, May 4, 2021 at 1:31 PM Yann E. MORIN <yann.morin.1998 at free.fr> wrote
> Im not usre I understood that, but basically one would write:
>
>     HELLO_WORLD_VERSION = 1.2.3
>     HELLO_WORLD_SOURCE = hello-world:1.2.3
>     HELLO_WORLD_SITE = dockerhub.com/u/hello
>
>     $(eval $(oci-image-package))
>
> And that would download the hello-world:1.2.3 image from dockerhub and
> install that as a OCI image in the target filesystem, so that at runtime
> one could do (on the CLI, in an init script, in a systemd unit, etc...):
>     docker run hello-world:1.2.3 /bin/hello-world
>
> Something like that?

Yes, the "download" step would use host "img pull" to download the OCI
image, and then "img save" to store it as a .tar.gz, (which we can
then hash as a downloaded tar.gz file).

The .tar.gz can be loaded into Docker with "docker load < the-image.tar.gz"

The image-package helper could just download the image + save it (to
images dir, optionally).

Best,
Christian



More information about the buildroot mailing list