feat(supabase): add services and statefulset for database management

feat(synapse): update ingress to use traefik ingress class and bump version

feat(syncthing-discovery): introduce syncthing discovery service with deployment and ingress

feat(syncthing-relay): add syncthing relay server with deployment and ingress configuration

fix(taiga): update liveness and readiness probes to use tcpSocket for health checks

fix(taiga): change PVC access mode to ReadWriteMany for media and static storage

feat(traefik): add icon and ignore rules for traefik service

docs(ushahidi): add notes for Redis configuration and Laravel startup probe adjustments

feat(ushahidi): implement dedicated Redis deployment for Ushahidi

fix(vllm): update deployment strategy and readiness/liveness probes for improved stability

fix(writefreely): pin writefreely image version to v0.15.1 for consistency

docs(zulip): add notes for TLS-terminating reverse proxy configuration and expected behavior
This commit is contained in:
2026-07-02 21:34:27 +00:00
parent 9f5057dff8
commit 4d983819c9
151 changed files with 3403 additions and 1303 deletions

38
bookwyrm/notes.md Normal file
View File

@@ -0,0 +1,38 @@
# BookWyrm — Notes
## SCSS themes must be compiled before collectstatic
BookWyrm ships SCSS source files instead of pre-compiled CSS. The static root is an `emptyDir`
(ephemeral), so it is empty on every pod restart. Running `collectstatic` alone fails:
```
ValueError: Missing staticfiles manifest entry for 'css/themes/...'
```
**Fix**: compile themes before collecting static files:
```yaml
command: ["/bin/sh", "-c"]
args:
- |
python manage.py compile_themes \
&& python manage.py collectstatic --noinput \
&& python manage.py migrate \
&& exec gunicorn bookwyrm.wsgi:application ...
```
Check the image's `Dockerfile` or `docker_start.sh` to confirm the current required build steps.
## PostgreSQL extensions require superuser
BookWyrm uses extensions (`bloom`, `pg_trgm`, etc.) that require superuser to install. Migrations
fail with `permission denied to create extension "bloom"` if the app DB user is not a superuser.
**Fix**: create the extensions in the `db-init-job`, which connects as the `postgres` superuser:
```bash
psql -d "$APP_DB_NAME" -c "CREATE EXTENSION IF NOT EXISTS bloom;"
psql -d "$APP_DB_NAME" -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
```
This must run before migrations (i.e. in `db-init-job`, not in the app startup command).

View File

@@ -80,4 +80,7 @@ spec:
GRANT USAGE ON SCHEMA public TO \"$BOOKWYRM_DB_USER\";
"
# Create bloom extension (required by bookwyrm migrations, needs superuser)
psql -d "$BOOKWYRM_DB_NAME" -c "CREATE EXTENSION IF NOT EXISTS bloom;"
echo "Database initialization completed."

View File

@@ -23,7 +23,7 @@ spec:
containers:
- name: bookwyrm
image: ghcr.io/bookwyrm-social/bookwyrm:v0.8.6
command: ["gunicorn", "bookwyrm.wsgi:application"]
command: ["/bin/sh", "-c", "python manage.py compile_themes && python manage.py collectstatic --noinput && python manage.py migrate && exec gunicorn bookwyrm.wsgi:application"]
ports:
- name: http
containerPort: 8000