- Build the image described in Dockerfile here:
docker build -t build-yocto .
- Create a volume that will store build data.
docker create volume yoctovolume
- Make
enter-yoctoavailable in youPATH, and run
enter-yocto
- Now you inside of docker container, current directory is
/balena-yocto-build. Clone your repo and start building, and/balena-yocto-buildcontent will be stored acrosss multiple container runs.
Please note that if you change image and volume names,
you have to modify enter-yocto script too.
On MacOS, you may need to adjust Docker settings to give it access to more CPU, memory, and disk.