Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Linux Containers to Manage Embedded Build Environments

#1
Using Linux Containers to Manage Embedded Build Environments

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/07/using-linux-containers-to-manage-embedded-build-environments.jpg" width="1500" height="706" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/07/using-linux-containers-to-manage-embedded-build-environments.jpg" class="ff-og-image-inserted" /></div>
<p><span><span>Linux container technology has been proposed by companies like </span><a href="https://www.linux.com/news/future-iot-containers-aim-solve-security-crisis"><span>Resin.io</span></a><span> as a simpler and more secure way to deploy embedded devices. And, Daynix Computing has developed an open source framework called </span><a href="http://rbld.io/"><span>Rebuild</span></a><span> that uses Linux containers in the build management process of embedded IoT development. At the 2017 </span><a href="https://events.linuxfoundation.org/events/open-source-summit-north-america-2018/"><span>Open Source Summit</span></a><span>, Daynix “virtualization expert” Yan Vugenfirer gave a presentation on Rebuild called “</span><span>How Linux Containers can Help to Manage Development Environments for IoT and Embedded Systems.”</span></span></p>
<p><span><span>Vugenfirer started by reminding the audience of the frustrations of embedded development, especially when working with large, complex projects. </span><span>“You’re dealing with different toolchains, SDKs, and compilers all with different dependencies,” he said. “It gets more complicated if you need to update packages, or change SDKs, or run a codebase over several devices. The code may compile on your machine, but there may be problems in the build server or in the CI (continuous integration) server.”</span></span></p>
<p><span><span>Rebuild offers an easier way to manage build environments by leveraging the power of Linux containers, said </span><span>Vugenfirer</span><span>. “Rebuild allows seamless integration between the containers and your existing build environment and enables easy sharing of environments between team members. We are mapping the local file system into the container in order to preserve all permissions and ownership when working with source code. The code is stored locally on our file system while we work with different environments.”</span></span></p>
<p><span><span>Based on </span><a href="http://ruby-doc.org/stdlib-2.0.0/libdoc/rubygems/rdoc/Gem.html"><span>Ruby 2.0+ Gem</span></a><span> and Docker, Rebuild supports Linux, Windows, and Mac OS environments. It’s available in free and commercial versions.</span></span></p>
<p><span><span>The software lets you run multiple platforms on same machine and gives you the assurance that it will run the same on the build or CI servers as it does on your development workstation, said </span><span>Vugenfirer</span><span>. The developer can choose whether actions performed on the build environment change the original. </span></span></p>
<h3><span><span>Build management designed for teams</span></span></h3>
<p><span><span>The software is particularly useful for sharing environments between team members. It provides a “unified experience,” and offers features like track versioning,” said </span><span>Vugenfirer</span><span>. Other benefits include easier technical support, as well as the ability to “reproduce an environment in the future with different developers.” Rebuild also “eases preparation for certification audits for medical or automotive devices by letting you show what libraries are certified,” he added.</span></span></p>
<p><span><span>Developers control Rebuild via the Rebuild CLI interface, which “acts as a gateway for scripts on CI or build servers,” explained </span><span>Vugenfirer. Below that in the architecture hierarchy sits Docker, and on the base level is the </span><span>Environments Registry, which works with Docker to manage and share the container images. Rebuild currently supports DockerHub as the default, as well as Docker private registry and Daynix’s own Rebuild Native Registry.</span></span></p>
<p><span><span>Developers can use existing scripts to build the software by simply prefacing it with the “rbld run” command. “You don’t need to know about Docker or Docker files,” said </span><span>Vugenfirer.</span></span></p>
<p><span><span>Daynix CTO </span><span>Dmitry Fleytman joined Vugenfirer to give a demo of Rebuild that showed how to </span><span>search a registry for available environments such as Raspbian, Ubuntu, BeagleBone, and QEMU. He then deployed the Raspbian environment and issued a Run command to compile source code. There’s also an interactive mode alternative to issuing a single run command. In either case, the process “needs to be done only once for each environment version,” said </span><span>Vugenfirer.</span></span></p>
<p><span><span>Although you can run an environment without modifying it, you can also do the opposite by using the “rbld modify” command, which lets you update packages. Other commands include “rbld commit” for a local commit and “rbld publish” to share it. You can also revert changes with “rbld checkout.”</span></span></p>
<p><span><span>Rebuild lets you create a new environment from scratch using the file system or build on a base image from one of the distros in environment repository. After using the “rbld create” command, you can then modify, commit, and publish it. </span></span></p>
<p><span><span>Future plans for Rebuild include adding role management for the Rebuild Native Registry to assign who can create an environment vs. simply running them. Daynix also plans to add more registries, provide IDE extensions, and offer more tracking of environment usage. They have just begun working on Yocto Project integration.</span></span></p>
<p><span><span>More information can be found in the conference video below:</span></span></p>
<p>[embedded content]</p>
<p><span><span>Join us at </span><a href="https://events.linuxfoundation.org/events/elc-openiot-europe-2018/"><span>Open Source Summit + Embedded Linux Conference Europe</span></a><span> in Edinburgh, UK on October 22-24, 2018, for 100+ sessions on Linux, Cloud, Containers, AI, Community, and more.</span></span></p>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016