Self-hosting · Without internet access

Self-hosting · Planning

Without internet access

Carrying a version of Subduction to a server that cannot reach us, as one file.

Downloading a version as one file

On any machine that has subd, the access token and a connection to us (your own laptop, say; it needs no Docker):

sudo subd fetch

downloads the newest version you may install as one file (suite-base-<version>.tar.gz, or your own build's name in place of suite-base), with a description of what it holds (.json) and its checksum (.sha256) beside it, into the current directory. --version names a version and --dir another directory. Every piece of the download is checked as it arrives, so a file that lands is a whole one.

Loading it on the server

Carry the file and its .json to the server, into one directory, and there:

sudo subd install --from suite-base-<version>.tar.gz.json   # the first time; then `sudo subd up`
sudo subd update --from suite-base-<version>.tar.gz.json    # moving to a newer version

subd checks the file against its description before it loads anything, and the server then runs from what it loaded, downloading nothing.

Loading also gives the server's Docker the PostgreSQL and web server images under the names they were published with, such as postgres:18, so anything else on that server that starts one of those by name runs the loaded image from then on.

Rolling back

sudo subd rollback works as it always does. If the version it returns to was removed from the server meanwhile, it says so, and sudo subd rollback --from <that version's .json> loads it again.

Older versions

A version from before we began hosting these files is downloaded by sudo subd export instead, on a machine with Docker: it writes subduction-<version>.tar and its .json the same way, and --from loads either. Its images are fetched for an x86_64 server unless --platform linux/arm64 says the server is ARM.