This repository briefly describes to process of building platform specific Yocto based images for the sorrir IoT testbed. All images are based on Yocto Warrior
- Yocto builds take place in a CI/CD system (GitLab Pipelines)
- Custom layers are imported for use-case specific needs
- Mender is used to deploy and update them
- k3s is used as a kubernetes container orchestrator
This folder contains a Dockerfile used to build a Yocto build environment. Later on, this is used by a build runner in GitLab, but could be easily applied to GitHub Actions or any other CI/CD build tool.
Within the Dockerfile, the following steps are executed:
- Install the Yocto Build environment and dependencies based on the official documentation
- Google Repo is installed since Mender makes heavy use of it
- A unprivileged user is created and configured that later runs the actual build
This folder contains an example on how to build a Raspberry Pi image for our testbed.
Hereby the following process is executed:
- Prepare the working directory
- Download the appropriate mender base configuration
- Download our custom layers
- Source the build environment
- Configure the layers with some debug output
- Build the image
- Pass the built images to the next stage to upload it to a running mender instance
This folder contains a Mender deployment based on their initial release. This deployment makes use of kustomize
The following process is executed:
- Manually run
helm repo add mender https://charts.mender.io
- Manually run
kustomize build ./mender/mender --enable-helm . | kubectl apply -f -
- Minio is installed
- MongoDB is installed
- Mender is installed
After a first login to the mender webinterface you can generate the necessarry credentials used in the second pipeline step of our "Image example" above.
Based on this example, you can now create your initial deployment by duming the CI artifact sdcard
image to your device. Any subsequent update can be automatically deployed using mender.