Skip to main content

cairn

Frappe + ERPNext + your custom apps, on one VPS, running the commit you last pushed.

cairn builds a Docker image from your app repositories, publishes it to a container registry, and lets your server notice the new image and switch to it on its own.

There is no CI service to configure, no webhook to receive, and no build minutes to pay for. Two small systemd timers do the polling, one on the machine that builds and one on the machine that serves. Both dial outward: your VPS never opens a port, never holds a webhook listener, and never hands a deploy key to GitHub.

A cairn is a trail marker of stacked stones. Every deploy leaves one behind: the git ref, the commits it resolved to, the image tag, the digest. You can always walk back.

How it works

You push a commit. The builder's timer resolves your app refs to commits, notices the combination is new, builds an image, pushes it, and moves the environment's tag. The target's timer notices the tag moved, pulls the image, restarts the stack, runs bench migrate, and checks that the site came back. Neither machine accepts a connection to do any of it.

Every image records the commits it was built from, the build arguments used, and the version of the build recipe that produced it. The tag is derived from those resolved inputs rather than typed by hand, so the same inputs produce the same tag and different inputs cannot collide. Rolling back is moving the tag to an earlier image and letting the server converge.

cairn's build recipe and compose configuration were bootstrapped from frappe/frappe_docker and stay close to it. frappe_docker gives you the parts to build a custom image; cairn adds the lifecycle around them. If cairn went away, you would be left holding a normal compose deployment and a registry full of normal images.

What it does not touch

cairn moves code, not data. The only database write it ever makes is the bench migrate that follows a deploy. It does not create sites, it is not a backup tool, and it is not multi-server orchestration. One VPS, one site.

Three roles, one package

Command Does
Builder cairn-build Builds the image, pushes it, moves the environment tag
Target cairn-adopt Polls for the tag, pulls, converges the running stack
Registry cairn-registry Hosts images, if you self-host. Optional: bring your own registry instead
pipx install datahenge-cairn

installs all three. Each machine uses whichever role applies to it.

Documentation

datahenge.github.io/cairn

Start with Why cairn to decide whether you want it, then Get Started to install.

Metadata

Release files for datahenge-cairn 0.4.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datahenge-cairn 0.4.17
File Size Uploaded Provenance Actions
datahenge_cairn-0.4.17.tar.gz 751.7 kB Without provenance Details for datahenge_cairn-0.4.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datahenge-cairn 0.4.17
File Interpreter ABI Platform Actions
datahenge_cairn-0.4.17-py3-none-any.whl Python 3 none any Details for datahenge_cairn-0.4.17-py3-none-any.whl

Total release size: 940.5 kB

Release files / datahenge_cairn-0.4.17.tar.gz

Download URL datahenge_cairn-0.4.17.tar.gz
Size 751.7 kB
Tags Source
SHA-256 checksum
How to use checksums
993702849c470860644d7ec3091c9106eb088e243ac3ae38af3aa333533db8a4
BLAKE2b-256 checksum
How to use checksums
138b9ec548730666ff3eb2fac2b3dfc3c41dafbda61b5088f94dc2917959a4e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / datahenge_cairn-0.4.17-py3-none-any.whl

Download URL datahenge_cairn-0.4.17-py3-none-any.whl
Size 188.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abef1a405818332a84bf1507906b6027abdcc047a5e5e079ce510832c8621d08
BLAKE2b-256 checksum
How to use checksums
c524cd4cc5ffa023488cceb70cab00c192a69ae5262cdd30038c026b9b9ad3f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for datahenge-cairn 0.4.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.17 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page