Developer beta 0.1.0-beta.1 documentation. The build is not available for download yet; these pages describe the beta as built and tested on Linux x86-64.

Installation

The developer beta is a release bundle for one platform (binaries, installer, systemd unit, documentation, checksums). There are no external runtime dependencies: the binaries need only the platform C library. The sections on the container image and on building from source apply to those who have the source tree; neither is part of the bundle.

Supported platforms

Platform Status in 0.1.0-beta.1
Linux x86-64 (glibc 2.39+, e.g. Ubuntu 24.04, Debian 13) the tested platform: the test suites, the packaged bundle and the install smoke test were run on it (ext4). The container image was not built or run for this beta
Linux aarch64 not verified for this beta: no bundle is offered. The build and test jobs for it exist, but they were not run on this version
macOS not verified for this beta: no bundle; the test job exists but was not run on this version
Windows not supported: the server uses unix-only file and signal primitives

A binary runs on any distribution whose C library is at least as new as the build host’s (the release bundles are built on Ubuntu 24.04: glibc 2.39). On an older distribution build from source.

From the release bundle (Linux)

tar -xzf holadb-0.1.0-beta.1-x86_64-unknown-linux-gnu.tar.gz
cd holadb-0.1.0-beta.1-x86_64-unknown-linux-gnu
sha256sum -c SHA256SUMS                      # every file of the bundle
bin/holadb version                           # version, commit and target
sudo ./install.sh                            # or: ./install.sh --prefix ~/.local --no-user --no-service

install.sh verifies the checksums first (a mismatch installs nothing), then installs holadb and holadb-server into /usr/local/bin, the documentation into /usr/local/share/doc/holadb, creates the holadb system user and the data directory /var/lib/holadb (mode 0750, owned by that user), writes /etc/holadb/holadb.env from the example (an existing file is kept) and installs the systemd unit holadb.service. Everything after the binaries is optional (--no-user, --no-service, --prefix, --sysconfdir, --data). uninstall.sh reverses it and keeps the data directory unless --purge-data is given. First start, users, TLS and the service are in Server deployment.

Verifying the download itself: sha256sum -c holadb-0.1.0-beta.1-x86_64-unknown-linux-gnu.tar.gz.sha256 against the .sha256 file published with the tarball (and listed in the release’s SHA256SUMS). BUILD.json inside the bundle names the commit, target, toolchain and the checksum of each binary; holadb version prints the same commit and target, so an installed binary can always be traced to its build (This release).

Container image

docker run -d --name shop \
  -p 127.0.0.1:7433:7433 -p 127.0.0.1:9433:9433 \
  -v holadb-shop:/var/lib/holadb \
  holadb:0.1.0-beta.1
curl http://127.0.0.1:9433/ready

The image (release/Dockerfile) holds the bundle’s binaries on ubuntu:24.04, runs as the unprivileged holadb user, keeps the database in the volume /var/lib/holadb and starts holadb-server /var/lib/holadb/db 0.0.0.0:7433 --pg 0.0.0.0:5433 --metrics 0.0.0.0:9433 --metrics-allow-remote --log json. Override the command to add flags (TLS, archiving, limits: Configuration). Publish the ports to loopback or a private network only until users and TLS are configured. docker exec shop holadb users /var/lib/holadb/db … needs the server stopped; use SQL (CREATE USER) through the running server instead. No image is published, and the image was not built or run for this beta: treat the container path as untested.

From source

Requirements: the pinned Rust toolchain (rust/rust-toolchain.toml, installed automatically by rustup) and a C compiler (the TLS stack, rustls with the ring provider, builds one C/assembly crate; cc/clang from any distribution package is enough).

cd rust
cargo build --release --locked
ls target/release/holadb target/release/holadb-server
  • holadb — the command-line tool (also serves: holadb serve).
  • holadb-server — a minimal server binary (holadb-server <dir> [<addr>] [options], --help lists them) for supervisors that want one process with one job.

Copy them anywhere on your PATH. A plain cargo build does not record the commit (holadb version prints no commit); release/build.sh does.

Verifying an installation

holadb version                      # version, protocol, formats, commit, target
holadb doctor                       # the binary's own checks, no database needed
holadb doctor /var/lib/holadb/db    # the checks of a database directory

cd rust && cargo test --workspace --locked runs the full suite from a source checkout (the end-to-end tests need python3, node 20+ and psql on the PATH, and the live-PostgreSQL migration test needs the PostgreSQL server package and root on Linux; without them those tests are skipped, and HOLADB_REQUIRE_SDKS=1 / HOLADB_REQUIRE_PSQL=1 / HOLADB_REQUIRE_POSTGRES_SERVER=1 make the skip a failure).

SDKs

Language Package Requirements
Rust holadb-client (workspace crate; holadb_client::sdk) the pinned toolchain
Python holadb 0.1.0b1, source in rust/clients/python: python3 -m pip install ./rust/clients/python Python 3.10+, standard library only
TypeScript @holadb/client 0.1.0-beta.1, source in rust/clients/typescript: npm ci && npm pack there, then npm install <path>/holadb-client-0.1.0-beta.1.tgz in your project Node 20+, no runtime dependencies

The Python and TypeScript packages are not on PyPI or the npm registry in this beta: they are built from the repository as shown.

See Rust SDK, Python SDK and TypeScript SDK.

Optional tools

Upgrading and uninstalling

Upgrading is: back up, replace the binaries, start, validate, then holadb upgrade with a pre-upgrade backup (Server deployment). Rolling back before holadb upgrade is starting the previous binary again; after it, restoring the pre-upgrade backup. Replacing the binaries with a newer bundle is ./install.sh from that bundle (the configuration file and the data directory are kept).

Uninstalling is ./uninstall.sh from the bundle (--prefix, --sysconfdir and --data as given to install.sh): it stops and removes the service, the binaries, the documentation and /etc/holadb, and keeps the data directory unless --purge-data is given. Take a backup first (holadb backup). Without the bundle, remove /usr/local/bin/holadb, /usr/local/bin/holadb-server, /usr/local/share/doc/holadb, /etc/holadb and /etc/systemd/system/holadb.service by hand.