Toshiba Global Commerce Solutions
ELERAIQ Portal
← Portal Home

Docker Guide

Alternative to the .deb package - useful for quick iteration on a dev machine, or if you'd rather manage this as a container than a systemd service.

Requirements

Run it

git clone https://github.com/yeshaib/tgcs-fr-pred.git
cd tgcs-fr-pred
docker compose up --build

First build takes a few minutes (installing the camera SDK and OpenCV). Watch for Pipeline successfully started. in the logs.

How USB passthrough is set up

docker-compose.yml uses:

device_cgroup_rules:
  - "c 189:* rmw"
volumes:
  - /dev/bus/usb:/dev/bus/usb

This is the camera SDK's own documented minimal permission set (it prints this exact hint if USB access fails) - scoped to USB device class 189, rather than granting the container full --privileged access.

If you get "No available devices": temporarily swap that block for privileged: true to check whether it's a permissions issue at all:

privileged: true
# device_cgroup_rules:
#   - "c 189:* rmw"

If that fixes it, the scoped rule needs adjusting for your kernel - don't leave it on privileged: true long-term, come back and narrow it down instead.

Updating

git pull
docker compose up --build -d

Dev vs. edge

docker-compose.yml as committed mounts app.py and static/ from the host, so local edits show up without a rebuild (restart the container to pick them up). For an edge deployment, drop those two volume mounts - the image should be fully self-contained, built once and shipped as-is.

v1.5.1 - 2026-08-20

v1.5.0 - 2026-08-20

v1.4.0 - 2026-08-20

v1.3.1 - 2026-08-20

v1.3.0 - 2026-08-20

v1.2.0 - 2026-08-19

v1.1.0 - 2026-08-19

v1.0.0 - 2026-08-19