DavBoot01 / yocto-builder-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yocto-builder-docker

Docker image to build a Yocto Linux project on an arbitrary develioment workstation.

Is focused on building NXP Yocto layer at version L4.14.78_1.0.0. So it starts from Ubuntu 16.04.


To compile it

docker build -t alienmind85/yocto-builder:L4.14.78 .

Parameters

  • USER_NANE: name of the user to create (into code below we use the same user whach are running the image);
  • USER_CMD: relative path of the script or binary file to launch at user login.
    Attemption: the system assumes as root folder the one where the user launches the container and the script/binary file must to be in that folder or in a his subfolder.

Run mode

  • handless: execute a single task passed as argument (a script or binary file);
  • interactive: the user can use commands from shell

To run it in handless mode

docker run -it --rm -v $(pwd):$(pwd) -v /dev:/dev -v /proc:/proc -v /sys:/sys -w $(pwd) -e USER_NAME=$(whoami) -e USER_CMD=<script/binary> alienmind85/yocto-builder:L4.14.78 bash

To run it in iteractive mode

docker run -it --rm -v $(pwd):$(pwd) -v /dev:/dev -v /proc:/proc -v /sys:/sys -w $(pwd) -e USER_NAME=$(whoami) alienmind85/yocto-builder:L4.14.78 bash

Credits

Davide Cardillo, alias AlienMind
Github name: alienmind85
mail: cardillo.davide85@gmail.com


Based on

About


Languages

Language:Dockerfile 56.0%Language:Shell 44.0%