ov-foundation/skills/ubuntu/SKILL.md
Base Ubuntu 24.04 noble image. Root of the image hierarchy for Ubuntu- based builds. Runs as uid 1000 `ubuntu` via ADOPT mode — the upstream ubuntu:24.04 base image ships a pre-existing ubuntu:ubuntu account, and build.yml distro.ubuntu declares base_user to adopt it verbatim. Enabled 2026-04 as part of Phase A–F. MUST be invoked before building, deploying, configuring, or troubleshooting any Ubuntu-based image.
npx skillsauth add overthinkos/overthink-plugins ubuntuInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Base Ubuntu 24.04 (noble) image. Distinguished from /ov-foundation:debian by adopt mode: the upstream ubuntu:24.04 base image ships a pre-existing ubuntu:ubuntu account at uid 1000, and build.yml distro.ubuntu declares base_user: so the ov generator honors that account rather than creating a new one.
| Property | Value |
|----------|-------|
| Base | ubuntu:24.04 |
| Pkg | deb |
| Distro tags | ["ubuntu:24.04", "ubuntu", "debian"] (falls back to debian for package resolution) |
| Layers | (none — base image only) |
| Platforms | linux/amd64 |
| User | ubuntu / uid 1000 (adopt mode) |
| Home | /home/ubuntu |
| Registry | ghcr.io/overthinkos |
build.yml distro.ubuntu inherits from distro.debian (same apt bootstrap template) and adds a base_user: block:
distro:
ubuntu:
inherits: debian
base_user:
name: ubuntu
uid: 1000
gid: 1000
home: /home/ubuntu
Any downstream image with user_policy: auto (the default) that did not explicitly set its own user: field will adopt this — resolved.User = "ubuntu", resolved.Home = "/home/ubuntu", resolved.UserAdopted = true. The bootstrap emits no useradd; it emits a one-line comment documenting the adoption:
# User ubuntu (uid=1000) adopted from base image (declared in build.yml distro.base_user) — no useradd needed
WORKDIR /home/ubuntu
USER 1000
This architecture is declarative (what the base image ships) + policy-driven (how to reconcile with the image's configured user). Three policy values:
| Policy | Behavior on this base |
|--------|----------------------|
| auto (default) | Adopt ubuntu:ubuntu — image inherits the upstream account. |
| adopt | Same as auto here; hard-errors on bases without base_user:. |
| create | Override — force-create a different uid-1000 account (fails if useradd collides). |
See /ov-build:image "user_policy" and /ov-build:build "base_user" for the full table covering all four distros.
An earlier draft renamed the existing ubuntu account to user via usermod -l. That was rejected because:
/etc/passwd metadata assume the account is named ubuntu.Adopt mode respects the base image's contract and scales declaratively. See /ov-coder:sshd for the getent passwd 1000 pattern that makes layer content (sudoers in particular) work uniformly across both create and adopt modes.
FROM ubuntu:24.04
RUN --mount=type=cache,dst=/var/cache/apt,sharing=locked
--mount=type=cache,dst=/var/lib/apt,sharing=locked
apt-get update && apt-get install -y --no-install-recommends curl ca-certificates gnupg && \
... install go-task binary ...
# User ubuntu (uid=1000) adopted from base image (declared in build.yml distro.base_user) — no useradd needed
WORKDIR /home/ubuntu
USER 1000
The upstream ubuntu:24.04 pull from Dockerhub is unauthenticated-rate-limited (100 pulls / 6h / IP). If ov image build ubuntu fails with toomanyrequests, pull from AWS ECR Public and retag:
podman pull public.ecr.aws/docker/library/ubuntu:24.04
podman tag public.ecr.aws/docker/library/ubuntu:24.04 docker.io/library/ubuntu:24.04
ov image build ubuntu
ECR Public mirrors the Dockerhub library namespace without rate-limiting.
/ov-foundation:ubuntu-builder — pixi/npm/cargo multi-stage builder./ov-coder:ubuntu-coder — kitchen-sink dev image.ov image build ubuntu
ov shell ubuntu # drops into /home/ubuntu as uid 1000
id # uid=1000(ubuntu) gid=1000(ubuntu)
/ov-foundation:debian — sibling deb-family base without adopt mode (Debian 13 ships no pre-existing uid-1000 user)./ov-foundation:ubuntu-builder — multi-stage builder./ov-coder:ubuntu-coder — kitchen-sink dev image./ov-foundation:fedora — RPM-family counterpart./ov-foundation:archlinux — pacman-family counterpart./ov-build:build — base_user: declaration format, which lives in build.yml distro.ubuntu./ov-build:image — user_policy: field + reconciliation./ov-build:generate — adopt-vs-create writeBootstrap emission./ov-coder:sshd — getent passwd 1000-based sudoers works for both user (create) and ubuntu (adopt)./ov-coder:language-runtimes — Microsoft dotnet-install.sh (Ubuntu noble doesn't ship dotnet-sdk-9.0 in main; Microsoft's noble apt repo only has 10.0; the dotnet-install.sh --channel 9.0 is the cross-distro solution).MUST be invoked when:
ubuntu base image.ubuntu:ubuntu identity by default).${USER} / ${HOME} differences between Ubuntu and other deb-based images (ubuntu-coder → ubuntu:/home/ubuntu; debian-coder → user:/home/user)./etc/sudoers.d/ov-user says ubuntu ALL=(ALL) NOPASSWD: ALL rather than user.tools
OpenCharly CLI (charly) binary installed into container/VM images for in-container use. Use when working with charly binary deployment inside containers, native D-Bus support, or the full charly toolchain (charly binary + virtualization + gocryptfs + socat).
development
Operator CachyOS workstation profile — a kind:local template + target:local deploy that installs the full dev stack (30 candies) onto a CachyOS host via ShellExecutor. Lives in the overthinkos/cachyos submodule. MUST be invoked before editing or applying the charly-cachyos workstation profile.
tools
Fedora box with the full charly toolchain using shared candies. Rootless-first — runs as uid=1000 with passwordless sudo (no root, no cap_add: ALL). Same candy list as charly-arch. Includes NVIDIA GPU runtime. MUST be invoked before building, deploying, configuring, or troubleshooting the charly-fedora box.
tools
Arch Linux box with the full charly toolchain. Rootless-first — runs as uid=1000 with passwordless sudo (no root, no cap_add: ALL). Composes /charly-coder:charly-mcp so the box is reachable as an MCP gateway on port 18765. NVIDIA GPU runtime composed in. MUST be invoked before building, deploying, configuring, or troubleshooting the charly-arch box.