Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Install

Releases are on GitHub: https://github.com/cetra-ai/cetra/releases. Each release has:

File What it is
cetra-<version>-x86_64-unknown-linux-musl.tar.gz Linux x86_64, static
cetra-<version>-aarch64-unknown-linux-musl.tar.gz Linux aarch64 (arm64), static
cetra-<version>-aarch64-apple-darwin.tar.gz macOS on Apple silicon
SHA256SUMS SHA-256 of each archive
cetra-<version>-<target>.spdx.json SBOM of each binary (SPDX)
cetra-<version>.tgz the Helm chart (also on oci://ghcr.io/cetra-ai/charts/cetra)
install.sh the install script below

Each archive holds the cetra binary (web UI included), LICENSE, LICENSE-ELASTIC and THIRD-PARTY-NOTICES.md. Other platforms, including Windows and Intel Macs: use the Docker image.

Terminal window
curl -fsSL https://cetra.sh/install.sh | sh

The script picks the archive for your OS and CPU, checks it against SHA256SUMS, and copies cetra to ~/.local/bin. CETRA_VERSION=0.1.0 installs a given version and CETRA_INSTALL_DIR=/usr/local/bin another directory; for a root-owned directory pipe it to CETRA_INSTALL_DIR=/usr/local/bin sudo -E sh.

Without the script:

Terminal window
version=0.1.0
target=x86_64-unknown-linux-musl
curl -fsSLO "https://github.com/cetra-ai/cetra/releases/download/v$version/cetra-$version-$target.tar.gz"
curl -fsSLO "https://github.com/cetra-ai/cetra/releases/download/v$version/SHA256SUMS"
sha256sum --check --ignore-missing SHA256SUMS
tar -xzf "cetra-$version-$target.tar.gz"
sudo install -m 0755 "cetra-$version-$target/cetra" /usr/local/bin/cetra

Run it:

Terminal window
cetra serve

It keeps its data in ./cetra-data (set CETRA_DATA_DIR to choose) and listens on 8080, 4317 and 4318. On the first start it logs a setup link, setup required: open http://localhost:8080/setup?token=…; open it to create the first admin, organization and project. To skip the setup page, set CETRA_INIT_ADMIN_EMAIL, CETRA_INIT_ADMIN_PASSWORD, CETRA_INIT_ORG and CETRA_INIT_PROJECT (and optionally CETRA_INIT_SECRET_KEY) for the first start (Configuration).

/etc/systemd/system/cetra.service
[Unit]
Description=cetra
After=network-online.target
Wants=network-online.target
[Service]
User=cetra
Group=cetra
ExecStart=/usr/local/bin/cetra serve
Environment=CETRA_DATA_DIR=/var/lib/cetra
Environment=CETRA_PUBLIC_URL=https://cetra.example.com
EnvironmentFile=-/etc/cetra/cetra.env
StateDirectory=cetra
# Shutdown drains requests (20 s) and flushes buffered spans (30 s).
TimeoutStopSec=60
Restart=on-failure
[Install]
WantedBy=multi-user.target
Terminal window
sudo useradd --system --home /var/lib/cetra --shell /usr/sbin/nologin cetra
sudo systemctl daemon-reload
sudo systemctl enable --now cetra
Terminal window
docker run -d --name cetra \
-p 127.0.0.1:8080:8080 -p 127.0.0.1:4317:4317 -p 127.0.0.1:4318:4318 \
-v cetra-data:/data \
-e CETRA_PUBLIC_URL=http://localhost:8080 \
ghcr.io/cetra-ai/cetra:0.1.0
docker logs cetra 2>&1 | grep 'setup required'

The image (linux/amd64, linux/arm64) is distroless: no shell, the binary at /usr/local/bin/cetra, running as uid/gid 65532, data in the volume at /data. Its health check runs cetra health, which asks /readyz. Tags: 0.1.0 (exact), 0.1 (latest patch of 0.1) and latest; pin an exact version in production. Each release is also tagged sha-<commit> (the full 40-character commit hash), and unreleased commits can get a sha-<commit> image for testing a fix before it ships; those are not for production. A sha-<commit>-debug tag is a debug build that accepts test licence keys whose signing key is public: never run it with real data. These tags are kept. For more than a quick try, use Docker Compose.

Checksums are in SHA256SUMS. Each archive, the image and the chart also have a build provenance attestation, signed by GitHub Actions through Sigstore, that ties them to the release workflow run and commit. With the GitHub CLI:

Terminal window
gh attestation verify cetra-0.1.0-x86_64-unknown-linux-musl.tar.gz --repo cetra-ai/cetra
gh attestation verify oci://ghcr.io/cetra-ai/cetra:0.1.0 --repo cetra-ai/cetra
gh attestation verify oci://ghcr.io/cetra-ai/charts/cetra:0.1.0 --repo cetra-ai/cetra

The image also carries an SPDX SBOM and a provenance attestation from its build: docker buildx imagetools inspect ghcr.io/cetra-ai/cetra:0.1.0 --format '{{ json .SBOM }}'.