Files
Kontrollverlust/dev-up.sh
T
irrlichtandClaude Opus 5.5 65c9946f16 DEV: kein automatisches dev-up nach dem Commit
Der post-commit-Hook hat nach jedem Commit den DEV-Container neu gebaut.
Das passiert jetzt nur noch von Hand per ./dev-up.sh. Der Hook enthielt
nichts anderes und fällt deshalb ganz weg; commit-msg bleibt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 19:17:27 +01:00

22 lines
776 B
Bash
Executable File

#!/usr/bin/env bash
#
# dev-up.sh — baut das Image aus dem Arbeitsverzeichnis und startet den
# DEV-Container kver-dev auf http://127.0.0.1:8081 neu.
#
# Postgres läuft auf dem Host: localhost im DSN wird zu host.containers.internal,
# und pasta leitet diese Adresse (169.254.1.2) auf das Host-Loopback.
#
cd "$(dirname "$0")"
podman build -t localhost/kver:dev .
podman rm -f kver-dev
podman run -d --name kver-dev -p 127.0.0.1:8081:8080 \
--network pasta:--map-host-loopback,169.254.1.2 \
-e KVER_DSN="$(grep '^KVER_DSN=' dev.env | cut -d= -f2- | sed 's/@localhost:/@host.containers.internal:/')" \
-v ./prod_backup/2026-10-30/media:/app/static/media:ro \
-v kver-dev-preview:/app/static/media/preview:U \
--security-opt label=disable \
localhost/kver:dev