This repository contains the docker build script to create a docker image base on crops/poky:debian-12. The following modifications have been made:
- python venv is installed & created,
- kas has been installed by means of pip.
Read the Poky container or Yocto project regarding specific usage of the docker image. Kas documentation can be found here.
Clone the repository that contains the kas files, most likely it is something that is already part of the meta-layer, e.g. meta-layer/conf/kas-files/.yaml. To instruct docker to run the command just do the following:
docker run -it -v $(pwd):/workdir -v thesoftwareengineer83/debian-12-kas:latest \
--workdir=/workdir bash -c "kas build <thing>.yaml"
This will start by downloading the docker image if not already executed and executes the bash command, exit code can be caught to determine the build result.