<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Devops on Mulham Fetna</title>
    <link>https://mulhamfetna.com/tags/devops/</link>
    <description>Recent content in Devops on Mulham Fetna</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>contact@mulhamfetna.com (Mulham Fetna)</managingEditor>
    <webMaster>contact@mulhamfetna.com (Mulham Fetna)</webMaster>
    <copyright>© 2026 Mulham Fetna</copyright>
    <lastBuildDate>Wed, 16 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://mulhamfetna.com/tags/devops/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Docker Compose architecture for ROS 2: dependency-only images and mounted code</title>
      <link>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-compose-architecture/</link>
      <pubDate>Wed, 16 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-compose-architecture/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Both images hold dependencies and nothing else. The code and the robot model are mounted from your&#xA;checkout at runtime — so an edit is a five-second restart, not a five-minute rebuild.&#xA;&lt;/div&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;The big picture&#xA;    &lt;div id=&#34;the-big-picture&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#the-big-picture&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart TB&#xA;    subgraph HOST[&#34;🐧 Linux host&#34;]&#xA;        CAMDEV[&#34;/dev/video0&#34;]&#xA;        GPU[&#34;/dev/dri · Intel iGPU&#34;]&#xA;        X11[&#34;/tmp/.X11-unix&lt;br&gt;XWayland :0&#34;]&#xA;        SHM[&#34;/dev/shm&lt;br&gt;Fast DDS segments&#34;]&#xA;        NET[&#34;host network&lt;br&gt;UDP multicast · domain 42&#34;]&#xA;        REPO[&#34;repository checkout&#34;]&#xA;        subgraph VT[&#34;🐳 vision_tracker · 2.9 GB image&#34;]&#xA;            VN[&#34;vision_tracker_node.py&lt;br&gt;mediapipe 0.10.14 · OpenCV&#34;]&#xA;        end&#xA;        subgraph MT[&#34;🐳 mujoco_twin · 1.7 GB image&#34;]&#xA;            MN[&#34;mujoco_twin_node.py&lt;br&gt;mujoco 3.13.0 · GLFW&#34;]&#xA;        end&#xA;    end&#xA;    CAMDEV --&gt; VN&#xA;    GPU --&gt; VN&#xA;    GPU --&gt; MN&#xA;    X11 &lt;--&gt; VN&#xA;    X11 &lt;--&gt; MN&#xA;    VN &lt;--&gt; SHM &lt;--&gt; MN&#xA;    VN &lt;--&gt; NET &lt;--&gt; MN&#xA;    REPO -. &#34;bind mount .:/workspace:ro&#34; .-&gt; VN&#xA;    REPO -. &#34;bind mount .:/workspace:ro&#34; .-&gt; MN&#xA;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Repository layout&#xA;    &lt;div id=&#34;repository-layout&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#repository-layout&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── docker-compose.yml          # both services, shared namespaces&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── setup_host.sh               # xhost + device checks, once per login&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── vision_tracker/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── Dockerfile              # ros:jazzy + mediapipe==0.10.14&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── .dockerignore           # src/ is mounted, so keep it out of the build context&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   └── src/vision_tracker_node.py&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── mujoco_twin/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── Dockerfile              # ros:jazzy + mujoco==3.13.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── .dockerignore           # src/ and model/ are mounted&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   ├── src/mujoco_twin_node.py&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   └── model/                  # scene.xml → robot.xml (+ tendons.xml), assets/, config.json&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── standalone/main.py          # the same pipeline, one process&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── docs/&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Each service folder is its own &lt;strong&gt;build context&lt;/strong&gt;: editing the vision Dockerfile never invalidates the&#xA;twin&amp;rsquo;s image cache, and neither build uploads the 13 MB of meshes it doesn&amp;rsquo;t need.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-tendon-driven-hand-mujoco-digital-twin-vision-teleoperation/docker-compose-architecture/cover.png" />
    </item>
    
    <item>
      <title>Containerizing ROS 2 without losing the hardware</title>
      <link>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/</link>
      <pubDate>Tue, 08 Sep 2026 00:00:00 +0000</pubDate>
      <author>contact@mulhamfetna.com (Mulham Fetna)</author>
      <guid>https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/</guid>
      <description>&lt;div class=&#34;lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl&#34;&gt;&#xA;  Web developers containerize to isolate processes. Roboticists containerize and then spend the rest&#xA;of the day punching holes back through the isolation — for the camera, the GPU, the display server&#xA;and the network.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;ROS 2 Jazzy is hard-locked to Ubuntu 24.04. That single fact is reason enough to containerize:&#xA;without it, adopting a ROS distribution means adopting an operating system version, on every machine&#xA;that will ever run the code.&lt;/p&gt;&#xA;&lt;p&gt;But a ROS container is a strange artifact. A web service container wants isolation — that is the&#xA;product. A robotics container needs a webcam, a GPU, a display server and multicast networking, all&#xA;of which live outside it. You end up building a box and then carefully cutting four holes in it.&lt;/p&gt;&#xA;&lt;p&gt;Here is every hole in this project&amp;rsquo;s compose file and what it is for.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img&#xA;    class=&#34;my-0 rounded-md&#34;&#xA;    loading=&#34;lazy&#34;&#xA;    decoding=&#34;async&#34;&#xA;    fetchpriority=&#34;auto&#34;&#xA;    alt=&#34;A full docker compose up &amp;ndash;build: image layers exporting, colcon building hand_msgs inside both Python containers, then the ROS nodes attaching&#34;&#xA;    width=&#34;900&#34;&#xA;    height=&#34;947&#34;&#xA;    src=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log_hu_7eb02bda97083a9.png&#34;&#xA;    srcset=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log_hu_7eb02bda97083a9.png 800w, https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log.png 1280w&#34;&#xA;    sizes=&#34;(min-width: 768px) 50vw, 65vw&#34;&#xA;    data-zoom-src=&#34;https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/compose-build-log.png&#34;&gt;&lt;figcaption&gt;Cold start to live tracking. Note hand_msgs being compiled separately inside two different containers — that duplication is deliberate and load-bearing.&lt;/figcaption&gt;&lt;/figure&gt;&#xA;&lt;pre class=&#34;not-prose mermaid&#34;&gt;&#xA;flowchart TB&#xA;    subgraph HOST[&#34;🖥️ Host — Ubuntu / Kubuntu&#34;]&#xA;        X11[&#34;X11 socket&lt;br&gt;/tmp/.X11-unix&#34;]&#xA;        CAM[&#34;/dev/video0&#34;]&#xA;        GPU[&#34;/dev/dri&#34;]&#xA;        NET[&#34;host network&lt;br&gt;UDP multicast&#34;]&#xA;    end&#xA;    subgraph C[&#34;Active containers · ROS_DOMAIN_ID=42&#34;]&#xA;        HT[&#34;hand_tracker&#34;]&#xA;        RV[&#34;ros_rviz&#34;]&#xA;        TS[&#34;topic_sniffer&#34;]&#xA;    end&#xA;    GZ[&#34;gazebo_sim&lt;br&gt;(commented out)&#34;]:::parked&#xA;    classDef parked stroke-dasharray: 5 5,opacity:0.55&#xA;    CAM --&gt; HT&#xA;    GPU --&gt; HT&#xA;    GPU --&gt; RV&#xA;    X11 --&gt; HT&#xA;    X11 --&gt; RV&#xA;    NET &lt;--&gt; HT&#xA;    NET &lt;--&gt; RV&#xA;    NET &lt;--&gt; TS&#xA;&lt;/pre&gt;&#xA;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Hole 1 — the network wall has to come down&#xA;    &lt;div id=&#34;hole-1--the-network-wall-has-to-come-down&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#hole-1--the-network-wall-has-to-come-down&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;network_mode&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;host&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;ipc&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;host&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pid&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;host&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;This is the one that breaks stacks silently, so it is worth understanding rather than copying.&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://mulhamfetna.com/projects/ros2-mediapipe-robotic-hand-digital-twin-vision-teleoperation/docker-gazebo/featured.png" />
    </item>
    
  </channel>
</rss>
