ops/README.md 3.4 KiB 63 lines Raw

ops

inf3r-web.service runs the edge server under systemd with a dedicated account. That account cannot normally reach the interactive user's rootless Docker socket; a container bind needs the compose control, a user unit under the daemon user, or a DOCKER_HOST in /etc/inf3r/docker.env plus socket access for inf3r. install.sh copies inf3r-web and the inf3r cli into /usr/local/bin, the unit into /etc/systemd/system, and creates the account and state directory. It starts nothing and prints the three commands that the operator runs next.

build.sh builds the engine workspace and every bundle into ${CARGO_TARGET_DIR:-target}. A bundle is its own workspace, so the root cargo build --workspace does not build one. inf3r does not ship model bundles, weights, engine images, or a registry of them; a real bundle is operator content, and the in-repo fixtures exist for protocol and CI proof.

The install script has two layouts. In a checkout it lives at ops/install.sh and reads target/release; the root install.sh wrapper makes ./install.sh work there. In a release directory it sits beside inf3r-web, inf3r, and inf3r-web.service. DESTDIR stages the files without creating the account, which is how CI checks the layout without root.

Containerfile is the checked-in control image build. The runtime image carries the server, the cli, and the probe; it carries no plugin binary and no engine library. The mock manifests are baked in, and every engine is a sibling container from its own bundle image. uv and Python remain for the echo fixture; weights are a mount, not a layer.

control-manifests.sh stages the manifest-only tree that a compose control mounts at /opt/inf3r/plugins-extra for bundles other than the baked mock. It copies bundle.toml, target.toml, models/*.toml, and BUNDLE.md; it never copies engine/, a plugin binary, an engine library, or a weight.

images.sh builds one self-contained bundle image in Docker from that bundle's own Dockerfile. It stages only the bundle directory plus the shared SDK workspace, so it does not choose an engine, a language, or a base for the bundle. The command records the source digest and final image digest in ${CARGO_TARGET_DIR:-target}/images.lock, and check verifies the source, image labels, image digest, and the absence of a model/ tree or weight file.

compose-proof.sh starts the compose control and its sibling mock engine, checks the healthcheck and catalogue, proves there is no plugin process in the control, restarts it to prove the token and state survive, runs the container gate, and checks that neither container mounts a host engine path. It builds the compose control image and uses the local bundle alias.

gpu-proof.sh measures the rootless GPU path on a host with NVIDIA CDI. It runs two engine-sandbox GPU queries, a probe with host PID visibility, a control container that starts the mock over its private socket, and a real CUDA allocation that measures free VRAM and its settle. It prints the container-to- host UID mapping that explains the 0:0 choice. It uses only local images and rejects a non-rootless daemon; pass the GPU indices to test, or no arguments for every card:

INF3R_PROOF_IMAGE=inf3r:local INF3R_ENGINE_IMAGE=inf3r/mock/x64-cpu:local \
    ./ops/gpu-proof.sh 0 1

The operator owns the deploy file. Write it before the unit starts. The server reads it on start; it never writes it.

view raw