Files
codit/packaging/README.md
2026-06-07 01:30:02 +09:00

57 lines
1.3 KiB
Markdown

# Codit package builds
This directory contains packaging files for Codit itself.
## RPM
From this directory on Fedora/RHEL-like systems:
```sh
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:
```sh
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.
By default it uses `ubuntu:24.04` and `../repokit`. Override with:
```sh
CODIT_DEB_IMAGE=debian:12 make deb-docker
CODIT_REPOKIT_DIR=/path/to/repokit make deb-docker
```
Outputs are written under `packaging/DEB`.
## Runtime
After install:
```sh
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/`.