Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Scope

Dobby is a container management tool, to make it easy for other applications to start/stop/monitor containers. It can be thought of as a "Docker for the embedded world". 

This page demonstrates building a sample Java application in RDK framework and running in a container using Dobby in a RDK-B reference board ( Rpi ).

Major Dobby Components in RDK-B

  • DobbyDaemon

    • This is the main Dobby process, which is launched at bootup by systemd. When started, DobbyDaemon registers itself on dbus. It then idles and waits for commands over dbus to start, stop or inspect containers.

  • DobbyTool

    • CLI to interact with Dobby for developers, and issue commands such

      as start, stop or info

      as start, stop or info

Build Dobby in RDK-B

  1. Getting the RDK-B

  1. dunfel Code 

    mkdir < workspace_dir>
    cd  <workspace_dir>
    repo init -u https://code.rdkcentral.com/r/manifests -b dunfell -m rdkb-extsrc.xml
    repo sync -j4 --no-clone-bundle
  2. Add dobby,readline and crun packages to the package recipe file to consider it during the build

    Path: ./meta-cmf-raspberrypi/recipes-core/packagegroups/
     Include Rpi repo init and build steps to include Dobby and   
    packagegroup-rdk-ccsp-broadband.bbappend
    detail. mostly step 1 to 4

    Image Added


  3. Add readline dependencies in the dobby recipe file

    Path: ./meta-rdk/recipes-containers/dobby/dobby-thunderplugin.bb

    Image Added


  4. Add the below kernel options to support containerization

    Path: ./meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi.inc

    Image Added



Build Java Application in RDK-B

step 5,6,7

Running Dobby Container in Rpi

This provides details on running containerized java applications using dobby in RDK-B Platform (Raspberry Pi)

Steps:

  1. rest of the steps

2.

Validation:

1.

2.


Sample Code