Files

Codit package builds

This directory contains packaging files for Codit itself.

RPM

From this directory on Fedora/RHEL-like systems:

make rpm

Outputs are written under packaging/RPM/RPMS and packaging/RPM/SRPMS. The RPM installs:

  • /usr/sbin/codit-server
  • /usr/sbin/codit-data-browser
  • /etc/codit/codit.yaml
  • /etc/codit/conf.d/
  • /etc/sysconfig/codit
  • /usr/share/codit/frontend/
  • /usr/lib/systemd/system/codit.service
  • /var/lib/codit/data/
  • /var/log/codit/

Debian package in Docker

From this directory:

make deb-image
make deb-docker

The Debian helper builds frontend/dist natively on the host first with npm ci and npm run build. It then prepares a temporary Docker build tree containing the Codit source, the prebuilt frontend bundle, and a sibling repokit checkout so the Go build can compile the repokit dependency inside Docker.

make deb-image builds a reusable local packager image once. make deb-docker reuses that local image and only builds it automatically if it is missing.

By default it uses the local image codit-packager:deb, which is built from debian:stable, and ../repokit. Override with:

DEB_PACKAGER_BASE_IMAGE=debian:12 make deb-image-rebuild
CODIT_DEB_IMAGE=my-local-packager:deb make deb-docker
CODIT_REPOKIT_DIR=/path/to/repokit make deb-docker

Outputs are written under packaging/DEB.

Runtime

After install:

systemctl enable --now codit.service

The default listener is :1080. Override configuration in /etc/codit/codit.yaml or add later-loaded YAML files under /etc/codit/conf.d/.