Generates deterministic install identifiers and related labels for services and images.
// Source: https://github.com/nanocoai/nanoclaw | License: MIT | Copyright 2026 Gavriel // Provided via justclaw.it.com; keep this notice with the code. /** * Per-checkout install identifiers. Lets two NanoClaw installs coexist on * one host without clobbering each other's service registration or the * shared `nanoclaw-agent:latest` docker image tag. * * Slug is sha1(projectRoot)[:8] — deterministic per checkout path, stable * across re-runs, unique enough across installs. * * NANOCLAW_INSTALL_ID overrides the cwd derivation for deployments where * the checkout path is not a stable identity (copied or ephemeral trees), so * identity can come from the environment instead. The value flows into * docker labels, image names, and service unit names — hence the * conservative charset ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key