Skip to content

About

Public Linux base images for TaskHandoff Node Agent-managed Docker instances.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

TaskHandoff Images

Public Linux base images for TaskHandoff Node Agent-managed Docker instances. This repository is the image side of TaskHandoff: the application repository owns the control plane and Node Agent, while this repository owns the base images those agents run. It builds eleven profiles from shared layers:

Image Capabilities
task-handoff-controlled-base Terminal only; no AI CLI, browser, VNC, or desktop environment
task-handoff-controlled-desktop-minimal Terminal, Xvfb, Openbox, Tint2, jgmenu, xterm, and X11 utilities
task-handoff-controlled-desktop-xfce Terminal and a complete X11 Xfce session
task-handoff-controlled-codex Terminal and Codex
task-handoff-controlled-obscura Terminal, Codex, and Obscura
task-handoff-controlled-rea Terminal, Codex, REA, and Linux reverse-engineering tools
task-handoff-controlled-opencode Terminal and OpenCode
task-handoff-controlled-ai Terminal, Codex, and Claude
task-handoff-controlled-webcap GUI terminal, browser, WebCap, Codex, and Claude
task-handoff-controlled-bcap GUI terminal, browser, BCap, Codex, and Claude
task-handoff-controlled-browser GUI terminal, browser, VS Code Web, Codex, and Claude

These images provide operating-system packages, developer tools, and profile metadata. They do not contain the TaskHandoff controlled-instance application. At container creation time, Node Agent mounts its authoritative bootstrap bundle, installs the desired controlled-instance runtime artifact into a persistent runtime volume, and starts that runtime.

Codex, OpenCode, and Claude are managed native packages. The image downloads the pinned platform tarballs from the npm registry, verifies their integrity, and seeds them under /data/task-handoff/managed-apps/native/<app-id>/; it never runs a global npm install. Docker copies this seed into a new instance data volume. Existing volumes are not rewritten by an image update, so use App management to install or update those apps.

The Base, Desktop Minimal, and Desktop Xfce profiles intentionally do not seed Codex, OpenCode, Claude, Chromium, KasmVNC, noVNC, WebCap, BCap, code-server, or Remote Desktop. Their market capability is terminal only. Install AI CLIs and Remote Desktop later through App management.

The REA profile installs REA together with its reverse-engineer-anything agent skill and the Codex MCP registration, plus the Linux toolchain REA drives directly: Chromium for website analysis, JDK 21 for Ghidra and JADX, pwntools for offline ELF and recorded-crash analysis, and mitmproxy for native network captures. Analysis engines themselves are not bundled; supply Ghidra (GHIDRA_INSTALL_DIR), IDA (REA_IDA_MCP_CONFIG), headless JADX (REA_JADX_MCP_JAR), binwalk (REA_BINWALK_COMMAND), and unblob (REA_UNBLOB_COMMAND) yourself.

Local build

Build the default Browser profile:

./scripts/docker-build-image.sh

Select another profile with TASK_HANDOFF_IMAGE_PROFILE:

TASK_HANDOFF_IMAGE_PROFILE=codex ./scripts/docker-build-image.sh
TASK_HANDOFF_IMAGE_PROFILE=base ./scripts/docker-build-image.sh
TASK_HANDOFF_IMAGE_PROFILE=desktop-minimal ./scripts/docker-build-image.sh
TASK_HANDOFF_IMAGE_PROFILE=desktop-xfce ./scripts/docker-build-image.sh

Supported values, in market order, are base, desktop-minimal, desktop-xfce, codex, obscura, rea, opencode, ai, webcap, bcap, and browser. TASK_HANDOFF_IMAGE_REF overrides the local image tag. Tool versions are pinned by default; override their build arguments only for local testing.

Desktop sessions

Remote Desktop is an optional managed app, not part of these images. On Linux it first tries the existing X11 DISPLAY, validates authentication, the capture visual, SHM, Damage, XFixes, RandR, Composite, and XTest, then reuses an existing window manager when present. A reachable bare X server receives a discovered desktop session, while an unavailable display falls back to an owned Xvfb.

Standard X11 sessions are discovered from /usr/local/share/xsessions and /usr/share/xsessions. Hidden, malformed, non-executable, or TryExec-missing entries are ignored, and a standard session is launched through dbus-run-session. If more than one valid session is installed, set TASK_HANDOFF_DESKTOP_SESSION to the session id, Name, or one of its DesktopNames; an unresolved ambiguity returns REMOTE_DESKTOP_DESKTOP_UNAVAILABLE.

Desktop Minimal has no standard X11 session entry and uses the built-in Openbox, Tint2, and jgmenu fallback. Desktop Xfce exposes the standard xfce.desktop session. Attached X servers are never terminated, and only Xvfb or desktop process groups created by Remote Desktop are stopped.

Releases

Tags use the repository's vX.Y.Z version line. Pull requests and releases build only image profiles affected by the changes, including profiles that inherit a changed shared layer. A release publishes Linux amd64 and arm64 images under an immutable docker-sha-<commit> tag and promotes only those images to the release tag. Stable releases also update each affected image's latest; alpha and beta releases update their matching channel. Unchanged images retain their existing tags and are not required to publish every repository release version. A release automatically builds any profile that does not have a latest tag yet.

The affected-profile dependency graph is maintained in scripts/resolve-changed-image-profiles.mjs. Update that graph and its tests whenever a Dockerfile stage or profile is added or renamed.

Before publication, CI resolves the exact stable latest and preceding stable version of @task-handoff/node-agent from npm. It installs both packages and uses their bundled bootstrap and controlled-instance runtime artifacts to start the affected candidate image profiles. Publication is blocked unless both versions install, restart the same container, and pass the runtime health check.

Market catalog

After publication, CI reads each profile's tags, multi-architecture manifest digests, platform digests, compressed sizes, and publish times from the registry, merges them with the product metadata in market/profiles.json (names, descriptions, capabilities, optional apps), and deploys the market catalog to GitHub Pages at https://images.thandoff.com.

  • market/v1/catalog.json is the catalog consumed by the TaskHandoff control plane; it matches MarketCatalogSnapshotSchema with source set to remote.
  • market/v1/images/<slug>.json holds one image document for per-image audits.
  • market/v1/catalog.sig carries the detached ed25519 signature once a signing key is configured.

Generate the site locally (default output directory pages/):

DOCKERHUB_USERNAME=<namespace> node scripts/build-market-catalog.mjs

CI runs this from the Market Catalog Pages workflow: it fires automatically when a Docker workflow run for a release tag or a manual image version succeeds, and it can also be dispatched manually. The deployment always runs from main, because the github-pages environment only permits deployments from that branch; the tag-triggered release workflow must not deploy Pages itself. The first deployment requires setting the repository's Pages source to GitHub Actions and pointing the images.thandoff.com CNAME at edgestorage.github.io.

Optional repository configuration: the TASK_HANDOFF_CATALOG_SIGNING_KEY secret holds an ed25519 private key (PEM, base64 PKCS#8, or file path), and the TASK_HANDOFF_CATALOG_SIGNING_KEY_ID variable holds its key identifier. Without them the catalog is published unsigned; the application still verifies HTTPS and the repository allowlist unless a public key is pinned.

The profile list and capabilities in market/profiles.json must stay in sync with the Dockerfile io.task-handoff.image.* labels; tests enforce this.

Related repositories

  • edgestorage/task-handoff is the TaskHandoff application: the control plane, Node Agent, and the controlled-instance runtime that consumes these images.
  • edgestorage/task-handoff-images (this repository) builds and publishes the base images and maintains the market catalog.
  • edgestorage/task-handoff-docs holds the end-user documentation.

The GUI and browser profiles also build in the edgestorage/web-cap and edgestorage/bcap skills.

Every image carries org.opencontainers.image.source pointing back to this repository; that label is what links each Docker Hub repository to its source.

Ownership boundary

The image repository owns base packages, image profiles, image metadata, and image publication. The TaskHandoff application repository owns the Node Agent bootstrap, runtime installer, private configuration model, runtime artifacts, instance lifecycle, and the authoritative capability snapshot passed to each managed container. OCI capability labels in this repository describe the built artifact; the application does not use them as runtime state. Do not copy application-owned files into this repository.

License

Apache License 2.0. See LICENSE and NOTICE.

About

Public Linux base images for TaskHandoff Node Agent-managed Docker instances.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages