TipsAndTricks/DockerOnImage: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
Line 3: Line 3:
The main layer is meta-virtualization. This can be found using the layers.openembedded search app, Here's the [[https://layers.openembedded.org/layerindex/branch/master/layer/meta-virtualization/ meta-virtualiation]]  entry. As you can see from the dependency list, this layer requires oe-core,meta-oe, meta-networking, and meta-filesystems. Some of these (like meta-networking) have additional dependencies. Here's the complete list of additional layers you need:
The main layer is meta-virtualization. This can be found using the layers.openembedded search app, Here's the [[https://layers.openembedded.org/layerindex/branch/master/layer/meta-virtualization/ meta-virtualiation]]  entry. As you can see from the dependency list, this layer requires oe-core,meta-oe, meta-networking, and meta-filesystems. Some of these (like meta-networking) have additional dependencies. Here's the complete list of additional layers you need:
* [[https://git.yoctoproject.org/git/meta-virtualization meta-virtualization]]
* [[https://git.yoctoproject.org/git/meta-virtualization meta-virtualization]]
* [[git://git.openembedded.org/meta-openembedded meta-openembedded (aka meta-oe)]]
* [[git://git.openembedded.org/meta-openembedded meta-openembedded]]
** The meta-oe repo contains the rest of the needed layers:
** The meta-openembedded repo contains the rest of the needed layers:
*** meta-python
*** meta-python
*** meta-networking
*** meta-networking
*** meta-filesystems
*** meta-filesystems
*** meta-oe
You need to add these (with absolute paths) to your build/conf/bblayers.conf file. BBLAYERS should look something like this:
BBLAYERS ?= " \                                                                                                                                         
  /big/src/myBugs/poky/meta \                                                                                                                           
  /big/src/myBugs/poky/meta-poky \                                                                                                                     
  /big/src/myBugs/poky/meta-yocto-bsp \                                                                                                                 
  /big/src/myBugs/meta-intel \                                                                                                                         
  /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-oe  \                                                                                           
  /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-python  \                                                                                       
  /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-networking  \                                                                                   
  /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-filesystems  \                                                                                   
  /big/src/myBugs/RUN/CHIMERA_1/meta-virtualization  \                                                                                                 
  /big/src/myBugs/RUN/CHIMERA_1/meta-clear \                                                                                                           
  /big/src/myBugs/RUN/CHIMERA_1/meta-intel-docker \                                                                                                     
  "

Revision as of 17:54, 7 July 2017

This assumes you'd like to build an image that supports docker on a YP image. This is pretty straightforward due to the great work done on the meta-virtualization layer, mostly by people at Wind River. This document will show how to get docker running on a Minnowboard (Turbot). Note, these layers change, so this is accurate as of July 2017.

What Layers you Need

The main layer is meta-virtualization. This can be found using the layers.openembedded search app, Here's the [meta-virtualiation] entry. As you can see from the dependency list, this layer requires oe-core,meta-oe, meta-networking, and meta-filesystems. Some of these (like meta-networking) have additional dependencies. Here's the complete list of additional layers you need:

You need to add these (with absolute paths) to your build/conf/bblayers.conf file. BBLAYERS should look something like this:

BBLAYERS ?= " \                                                                                                                                          
 /big/src/myBugs/poky/meta \                                                                                                                            
 /big/src/myBugs/poky/meta-poky \                                                                                                                       
 /big/src/myBugs/poky/meta-yocto-bsp \                                                                                                                  
 /big/src/myBugs/meta-intel \                                                                                                                           
 /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-oe  \                                                                                             
 /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-python  \                                                                                         
 /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-networking  \                                                                                     
 /big/src/myBugs/RUN/CHIMERA_1/meta-openembedded/meta-filesystems  \                                                                                    
 /big/src/myBugs/RUN/CHIMERA_1/meta-virtualization  \                                                                                                   
 /big/src/myBugs/RUN/CHIMERA_1/meta-clear \                                                                                                             
 /big/src/myBugs/RUN/CHIMERA_1/meta-intel-docker \                                                                                                      
 "