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.
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:
But I can run docker in bash. Can anyboby tell me why docker cann't be found in Yocto. Thanks a lot !!!
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