Using Docker In Yocto

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using Docker In Yocto

1,923件の閲覧回数
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,870件の閲覧回数
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 件の賞賛
返信