On Thu, Feb 9, 2023 at 2:02 PM SIMON BABY <[email protected]> wrote:
>
> I was testing the meta-virtualization/recipes-demo/images/ app-container. I 
> was able to build the container. But I am not sure where the image is created 
>  and how we run the image using docker commands. I also see the .yaml files. 
> Can you please help?
>

Those application containers are in the oci-image format. The yaml
files are sample kubernetes deploy instructions, so unless you are
using kubernetes, they won't be of any help.

As for the OCI image files, how you get them onto the target is image
and distro specific.

As of right now, we don't fully support (I have some work in progress
code that I expect to get into the tree for the upcoming release)
cross loading of containers. Mainly due to the need for root
permissions on the build host, and other issues with namespaces,
users, etc.

Some common ways to use the OCI images are by copying them to a
registry via skopeo (or whatever tool you want), or you can arrange to
have the containers installed into the image (via mulitconfig, or
rootfs post processing), and load them via podman/docker/etc, on the
first boot.

There are LOTS of different ways that you'll see the containers being
manipulated, most of them are very specific to the requirements of a
distro, or use some sort of workarounds to permissions issues.

Again, I'm trying to introduce a supported / standard way to cross
load our OCI generated containers, but that won't be ready for a bit
yet.

Bruce

> On the target I can see /usr/bin/flask-app.
>
>
>
> bitbake app-container
>
>
> The generated build foles are below.
>
>
>
> build/tmp/work/armv8a-poky-linux/helloworld-flask$ ls
>
> 0.1-r0
>
> /build/tmp/work/armv8a-poky-linux/helloworld-flask$ cd 0.1-r0/
>
> build/tmp/work/armv8a-poky-linux/helloworld-flask/0.1-r0$ ls -ll
>
> total 84
>
> -rw-r--r--  1 tdydev tdydev    65 Feb  7 11:58 configure.sstate
>
> drwxr-xr-x  3 tdydev tdydev  4096 Feb  7 12:10 deploy-debs
>
> drwxr-xr-x  2 tdydev tdydev  4096 Feb  7 11:38 deploy-source-date-epoch
>
> -rwxrwxr-x  1 tdydev tdydev   518 Feb  2 14:24 flask-app
>
> -rw-r--r--  1 tdydev tdydev   511 Feb  7 11:58 flask-app-service.yaml
>
> -rw-r--r--  1 tdydev tdydev   178 Feb  7 11:58 flask-app.yaml
>
> drwxr-xr-x  2 tdydev tdydev  4096 Feb  7 11:35 helloworld-flask-0.1
>
> drwxr-xr-x  4 tdydev tdydev  4096 Feb  7 11:58 image
>
> drwxr-xr-x  3 tdydev tdydev  4096 Feb  7 11:38 license-destdir
>
> drwxr-xr-x  4 tdydev tdydev  4096 Apr  5  2011 package
>
> drwxr-xr-x 10 tdydev tdydev  4096 Feb  7 12:10 packages-split
>
> drwxr-xr-x  7 tdydev tdydev  4096 Apr  5  2011 pkgdata
>
> drwxr-xr-x  7 tdydev tdydev  4096 Feb  7 11:58 pkgdata-pdata-input
>
> drwxr-xr-x  7 tdydev tdydev  4096 Feb  7 11:58 pkgdata-sysroot
>
> drwxrwxr-x  2 tdydev tdydev  4096 Feb  7 12:10 pseudo
>
> drwxr-xr-x  5 tdydev tdydev  4096 Feb  7 12:10 recipe-sysroot
>
> drwxr-xr-x  8 tdydev tdydev  4096 Feb  7 12:10 recipe-sysroot-native
>
> drwxr-xr-x  2 tdydev tdydev  4096 Feb  7 11:35 source-date-epoch
>
> drwxr-xr-x  2 tdydev tdydev 12288
>
>
> Regards
>
> Simon
>
>
> 
>


--
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7850): 
https://lists.yoctoproject.org/g/meta-virtualization/message/7850
Mute This Topic: https://lists.yoctoproject.org/mt/96860300/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/meta-virtualization/leave/6693005/21656/1014668956/xyzzy
 [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to