Using Docker In Yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using Docker In Yocto

673 Views
Jackie_Zhou
Contributor II

My middleware software can be compiled in Docker, I can build it with a bash files, which contains serveral docker commands and make... Now I want to build it using Yocto.

20221227-221010.jpg

First I build the recipe it for  and write its .bb  files, and Everything seems to be OK. But when I add the command "./build.sh -t  s32g" in do_install() functions. Bitbake shows a mistake as follows:

Jackie_Zhou_0-1672150672296.png

But I can run docker in bash. Can anyboby tell me why docker cann't be found in Yocto. Thanks a lot !!!

20221227-222320.jpg

 

Tags (2)
0 Kudos
1 Reply

620 Views
nxf92355
NXP Employee
NXP Employee

Hi Jackie

Hope you are doing well.

By default docker is not found in build environment of yocto. as default yocto not uses local path in build environment. I am not aware how your script (build.sh) implemented or complex.for quick you can try with export PATH variable in your build.sh.

#! /bin/bash
export PATH=/usr/bin:$PATH

or you can implement docker command with full path in your script as below

 /usr/bin/docker <argument>

You can find more details on docker and yocto community support. I had created a small script which used docker command and built with a recipe, its was not giving such type of error. Hope this will help you

 

Regard ,

Tushar

 

0 Kudos