From 3a414ee97696df42f018663c2f87fb30f9445be8 Mon Sep 17 00:00:00 2001 From: Elias Ahokas Date: Sun, 21 Sep 2025 15:32:54 +0300 Subject: [PATCH] source build environment when starting the container --- scripts/run_docker_image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run_docker_image.sh b/scripts/run_docker_image.sh index c3aa4ee..9a553ec 100755 --- a/scripts/run_docker_image.sh +++ b/scripts/run_docker_image.sh @@ -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"