Sign inSign up

markgrimes/resin-build-env

By markgrimes

•Updated about 8 years ago

A container to build custom ResinOS images

Image
0

190

markgrimes/resin-build-env repository overview

⁠resin-build-env

An image to build Resin OS⁠ images. Mostly taken from resin-os/resin-yocto-scripts:automation/Dockerfile_yocto-build-env⁠ but with some minor changes of my own.

To use the container I do:

docker run --rm -it -v yocto:/work -v yocto-shared:/yocto-shared --privileged markgrimes/resin-build-env

This sets up two docker volumes, one for the build (yocto) and a separate one (yocto-shared) to store the product of each step (the "sstate"). Reusing the sstate will considerably speed up subsequent builds. Once in the container, start a build with:

docker daemon 2> /dev/null &
chown -R builder:builder /work/ /yocto-shared/
su builder
cd /work
git clone --recursive https://github.com/resin-os/resin-raspberrypi.git
cd resin-raspberrypi
./resin-yocto-scripts/build/barys --shared-downloads /yocto-shared/shared-downloads/ --shared-sstate /yocto-shared/shared-sstate/ -m raspberrypi

Tag summary

Content type

Image

Digest

Size

252.9 MB

Last updated

about 8 years ago

docker pull markgrimes/resin-build-env