This project provides a ready-to-use Docker environment for Yocto Project builds.
- Based on Ubuntu 22.04
- Non-root user (
yocto) with password (yocto) inside the container - UTF-8 locale properly set
- Workspace mounted to host machine to preserve build artifacts. (
build,downloads,state-cache) - Full automation with
run.ps1(for Windows users),setup-env.sh(for other users)
- Docker Desktop with WSL2 backend (recommended)
- Bash available (
bashcommand from WSL or Git Bash)
- Docker
-
Clone this repository:
git clone https://github.com/myhalici/yocto-docker-template.git cd yocto-docker-template -
Run the prepare environment script;
-
for Windows 11 Powershell [ Run as administrator ] (you may need to set PATH for
bash.exeif you get error forbash).\run.ps1 -
for others
./setup.env.sh
-
-
Docker container will be up, running and
pokywill be downloaded asscarthgapbranch, sourced environment.
- Windows 11
C:\\yocto\\buildsC:\\yocto\\downloadsC:\\yocto\\sstate-cache
- Others
/c/yocto/builds/c/yocto/downloads/c/yocto/sstate-cache