source build environment when starting the container

This commit is contained in:
Elias Ahokas
2025-09-21 15:32:54 +03:00
parent 5d5312e73e
commit 3a414ee976

View File

@@ -10,4 +10,5 @@ IMAGE_NAME="yocto-embedded-course"
docker run -it --rm \
-v "$REPO_ROOT:/home/yocto/yocto" \
-v "$REPO_ROOT/cache:/opt" \
$IMAGE_NAME
$IMAGE_NAME \
bash -c "source /home/yocto/yocto/poky/oe-init-build-env /home/yocto/yocto/build && exec bash"