A Linux container for production OE/Yocto builds.
2.7K
A Linux container for production OE/Yocto builds.
OE builds require a small number of dependencies that must be installed. This is not a huge deal, but can take 30-60 minutes to figure out what they all are and wait for them to install. This container gives you everything you need.
Additionally, production builds require a known build environment where package versions are not changing. Using a container for OE builds allows team members to use whatever Linux distro they want on their workstations, but all have access to a common build environment for OE builds.
docker run --rm -it \
-v $(pwd):$(pwd) \
-v ~/.ssh:/home/build/.ssh \
-v ~/.gitconfig:/home/build/.gitconfig \
cbrake/oe-build \
/bin/bash -c "cd $(pwd) && source envsetup.sh && bitbake core-image-minimal"
Some notes on the above:
This example illustrates several fundamental principals of Docker:
This container is based on Debian Jessie. Debian has proven to be an excellent OS for production OE builds where you might need to generate builds for a project over a period of years. OE can be rather fussy about versions of host packages (such as gcc, make, etc) so having a build distro where these are locked down is essential.
Processes in the container run as the "build" user by default, so it may be necessary that the user in your host has UID 1000 so they match.
MIT
Cliff Brake [email protected]
improvements/pull requests welcome!
Content type
Image
Digest
Size
276.4 MB
Last updated
over 8 years ago
docker pull cbrake/oe-build