ELBE Overview: Difference between revisions

From Wiki-DB
Jump to navigationJump to search
m little corrections
Prepare for ELBE docker container
Line 53: Line 53:
  <tt>adduser <user> libvirt && adduser <user> libvirt-qemu</tt>
  <tt>adduser <user> libvirt && adduser <user> libvirt-qemu</tt>


<!--
===Docker container===
We created docker container images with ELBE preinstalled, these can be found at [https://hub.docker.com/r/dhelectronics/elbe Docker Hub] under the name dhelectronics/elbe. There are two different versions of container tags available:
{| class="wikitable"
|-
! Tag !! Meaning
|-
| git-latest-tested || This tag always points to the latest version we have used and confirmed that is working with our own recipies. This version will change from time to time.
|-
| git-vX || These tags always point to a specific version of ELBE (e.g. git-v12.4 points to version 12.4 of ELBE).
|}
To get an image enter (e.g. version 12.4)
<tt>docker pull dhelectronics/elbe:git-v12.4</tt>
The container can be started with:
<tt>docker run --name=elbe --mount type=bind,src=./,dst=/workdir-w /workdir/ --cap-add SYS_ADMIN --security-opt seccomp:unconfined --security-opt apparmor:unconfined --mount type=bind,src=/sys/fs/cgroup,dst=/sys/fs/cgroup --device /dev/kvm --device /dev/fuse --group-add kvm dhelectronics/elbe:git-v12.4</tt>
Now you have to start a shell inside the container with:
<tt>docker exec elbe /bin/bash</tt>
Inside the container you can now run your ELBE build, you can exit the shell with CTRL+D and remove the container with <tt>docker container rm -f elbe</tt>.
-->
==Usage==
==Usage==


Line 65: Line 92:
If you add  <tt>--build-sdk</tt> at the "<tt>intvm create/submit</tt>"-command then as an addition to creating the root-filesystem, the SDK (for developing software for the root-filesystem) is created too.
If you add  <tt>--build-sdk</tt> at the "<tt>intvm create/submit</tt>"-command then as an addition to creating the root-filesystem, the SDK (for developing software for the root-filesystem) is created too.


<!--
===Script for easy use with container images===
We created a script for easing the use of ELBE inside the container. This script is preinstalled in our [[Virtual_Machine_for_Application_Development|Virtual Machine for Application Development]] starting with version Stretch Vx. The script is called '''elbe_container_build_start.sh [OPTIONS] <elbe_build_description.xml>'''. The following options are available:
{| class="wikitable"
|-
! Option !! Meaning of the option
|-
| --elbedockerimage <REPO:TAG> || Change elbe docker image
|-
| --repodir <path> || Initiates a Debian repo web server to start, which uses this repo path
|-
| --repodockerimage <REPO:TAG> || Change Debian repo webserver docker image
|-
| --initvmtopdir <path> || Change initvm top directory
|-
| --fast || Using elbe fast option (--skip-build-bin --skip-build-sources)
|-
| --console || Ignore everything  and start console in docker
|-
| --version || Display version info
|-
| --help || Display this help and exit
|}
It is possible to start an additional container with a debian repository, the given path at --repodir has to point at the root of a debian repository.
-->
==XML-Example==
==XML-Example==



Revision as of 15:45, 3 September 2020