mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Merged bakashrot-cert into bakashrot as bakashrot cert, Made the programs smaller, Added a -HybridCrt switch
- `bakashrot cert ca|issue|revoke|show` (same options) replaces bakashrot-cert: aws-lc, the C runtime and clap once, 2.53 MB instead of 2.85 + 1.73 MB on Windows; guides, docs, release.py, Docker updated - The tool built with its own profile, release-tools (panic = "abort", about 15% smaller); the DLL and the server keep unwind - clap without colours and suggestions (40 KB, 9 crates fewer) - SQLite without FTS3/FTS5, R-Tree, dbstat, STAT4, soundex(), extension loading and column metadata (LIBSQLITE3_FLAGS): the server 4.68 to 4.37 MB; a storage test checks they're out - build.ps1 / release.ps1 -HybridCrt (.cargo/hybrid-crt.toml): the UCRT from Windows, about 180 KB less per program, still nothing to install; static stays the default, README.txt says which - revamp.md: what was weighed and left (UPX, fully dynamic CRT, nightly options, OMIT_* flags), aws-lc kept over Graviola (490 KB bigger) and ring (no ML-KEM) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-4
@@ -50,12 +50,13 @@ Restart=on-failure
|
||||
|
||||
`docker/Dockerfile` (its comments have the details), the image
|
||||
`ghcr.io/aziascreations/bakashrot-server` (amd64 and arm64, pushed by CI
|
||||
on a version tag): the server, with `bakashrot` and `bakashrot-cert`
|
||||
beside it, on `debian:trixie-slim`, as uid 10001.
|
||||
on a version tag): the server, with the `bakashrot` tool beside it
|
||||
(`bakashrot cert` for the certificates), on `debian:trixie-slim`, as
|
||||
uid 10001.
|
||||
|
||||
- **The config** in `/etc/bakashrot`, read-only: `server.toml`, the
|
||||
certificates, the server's key (readable by uid 10001: `chown 10001`
|
||||
it, `bakashrot-cert` writes keys for their owner only). `listen =
|
||||
it, `bakashrot cert` writes keys for their owner only). `listen =
|
||||
"0.0.0.0:7000"`: 127.0.0.1 isn't reachable from outside.
|
||||
- **The database** in `/var/lib/bakashrot`, a volume: `database =
|
||||
"/var/lib/bakashrot/bakashrot.sqlite"`.
|
||||
@@ -64,7 +65,8 @@ beside it, on `debian:trixie-slim`, as uid 10001.
|
||||
7000:7000 -v ./config:/etc/bakashrot:ro -v
|
||||
bakashrot-data:/var/lib/bakashrot <image>`. `docker stop` is SIGTERM:
|
||||
a clean stop. The logs: `docker logs`.
|
||||
- **The tools:** `docker run --rm <image> bakashrot-cert ...`.
|
||||
- **The tool:** `docker run --rm <image> bakashrot cert ...` (or
|
||||
`bakashrot push ...`).
|
||||
- **Checked** by `docker/test.sh <image>` (CI runs it on both before
|
||||
pushing): certificates by the image's tool, its server, a push read
|
||||
back over a Docker network, `docker stop` ending it cleanly.
|
||||
|
||||
Reference in New Issue
Block a user