Using Docker In Yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using Docker In Yocto

1,922 次查看
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

 

标记 (2)
0 项奖励
回复
1 回复

1,869 次查看
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 项奖励
回复