Rolling Out Systems Without a Network
A server at a remote site has to be updated or restored, with no connection to head office and no IT specialist on site. runpack turns that into a single file that checks itself, explains what it would change, and then does it.
Starting point
A home server or a site with a narrow connection has to be updated or restored. The person on site does not know the central infrastructure and should not have to reach it. The same situation exists at larger, remote sites: pulling container images over a narrow line is slow and unreliable there.
The usual answer is configuration management with a control node, an inventory and Python on the target. For “bring it once and apply it” that is too heavy. I wanted a file I can hand over that runs at the target without preparation.
The path of a package
It is built where network and tools are available. The result is a single file that reaches the target by any route, for example on a storage medium. There it checks itself before it changes anything.
When building, prepare downloads the container images and, if wanted, the operating system packages with their dependencies. After that the target only needs a supported base system. Packages that grow too large can be built as a delta against a previous version or split across smaller media.
Structure of a package
The package is an executable with payload appended. The same file plays two roles: without the marker at the end of the file it is the build tool. With the marker it runs the embedded package.
The signature covers not only the payload but also the embedded runtime. Verification and extraction use the same opened file, so nothing can be swapped between checking and using.
Flow per resource
A package describes the desired state as a list of small tasks. Each task concerns exactly one resource, such as a package, a file, a service, a firewall rule or a container.
plan and verify never change anything. verify ends with its own exit code if a difference remains, so checks can be evaluated automatically.
Five decisions that shape the rest
The design book records every important decision with context, rejected alternatives and consequences. Five of them shape runpack the most.
E-0001 One executable, self-extracting package
A deployment is exactly one file: runtime, manifest, files, container images and optionally operating system packages. The person on site installs nothing and reaches no central infrastructure.Rejected: An agent with a central server needs a permanent connection, exactly what is to be avoided. Ansible requires a control node, an inventory and Python on the target. A tarball with an install script does not check the runtime and is not repeatable. A container image requires a container runtime before runpack can install one itself.
Price: Packages are large because images and packages travel inside. Deltas and splitting across smaller media help.
E-0011 Checksum and signature over the whole file
A package carries checksums and optional Ed25519 signatures that also cover the runtime. Which keys a target trusts is decided by the operator, not by the transport route.Rejected: An external GnuPG signature would be an extra process and cannot be enforced by the runtime. Certificate chains would be disproportionately heavy for targets without a network. Signing only the payload would allow the runtime to be swapped.
Price: A package checks itself with its own runtime. Whoever replaces the whole file can replace the runtime as well. An independent check with a separately installed runtime helps against that.
E-0005 Check, change, check again, no progress store
The state of the host is what counts. Each resource is checked, changed and checked again. An interrupted run, for example after a power cut, is simply continued by another run.Rejected: A progress journal as the source of truth becomes inconsistent as soon as someone intervenes by hand. Transactions with automatic rollback cannot be built reliably on a general-purpose Linux host.
Price: A failed run can leave a partly changed host. A log records what happened, and a further run carries on.
E-0010 Operating system packages as an isolated local repository
When building, a container of the target platform downloads all declared packages with their dependencies and indexes them. At the target the package system installs exclusively from this repository, with its own source lists, without touching the host’s configuration.Rejected: Using the host’s repositories requires a network and is not repeatable. Individual package files without dependency resolution leave dependencies open. Building on a host of the target distribution would turn every build machine into every target platform.
Price: Packages are not verified against the distribution’s signatures but through the package’s checksum and signature. What the base system already contains is not shipped.
E-0018 Undo by way of the previous package
Every complete run stores a copy of the package.rollback starts the previous package with its own runtime. It goes through the same checks as any other.
Rejected: Deriving reverse steps from the new manifest would miss the point: the old version knows best what it created. File system snapshots do not exist everywhere.
Price: The last packages stay on the host. A delta needs its base.
Operation
Operation is not an afterthought here, it is part of the design.
- One run at a time. A lock per deployment prevents parallel runs.
- Traceable. Every run writes a log in JSON format, and the output can also be requested as JSON. Separate exit codes distinguish error, difference, busy lock and rejected signature.
- Little state on the host. A few files with narrow permissions, written atomically. The state serves traceability and upgrade decisions, it does not replace checking the host.
- Secrets stay out. Values that count as secret are masked in output and in the support archive.
- Back up data before the change. On a version change, a backup of the declared data can run first.
- For people on site. A guided console in the terminal and an operations manual generated from the package.
- Architecture rules as tests. A script allows only explicitly named dependencies per area, every new link requires a deliberate change.
- Checks. Formatting, architecture check, tests and static analysis run on every state. In addition there are the race detector, coverage thresholds, vulnerability scan, fuzzing of the end-of-file parser and a run with a signed package without root privileges. Before a release, a manual test plan follows on Debian, Ubuntu and a RHEL variant.
Deliberately not part of runpack
runpack is not a replacement for Ansible, not an orchestrator, not an inventory system, not cloud provisioning and not a secret manager. It does not model a host completely but a small set of explicit resources. That is intentional: a small scope stays manageable.
What I take from this for businesses
A site without a network is a special case, but the design questions are the same as elsewhere. The following table is a translation, not a client result.
| Design principle | Translation for your business |
|---|---|
| One file instead of a tool chain | Changes can be taken to places where nobody has IT knowledge |
| A plan before every change | Whoever approves sees beforehand what would happen |
| The state of the system is what counts | Repeatable maintenance, even after an interruption |
| Trust lies with the operator, not in the transport route | Packages may travel by any route |
| Way back via the previous version | An update can be reset to the previous version |
| Small, explicit scope | A tool someone understands and can replace |