Das Skript soll mit einem Blick lesbar sein. Konfigurationsvariablen, Locking, DSN-Prüfung und Warteschleife fallen weg; übrig bleiben die drei podman-Befehle. Der GeoIP-Mount entfällt, weil der Dump kein data/ enthält. Das Fertig-Signal im Log ist jetzt die Container-ID statt "== läuft". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
856 B
Bash
Executable File
23 lines
856 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. Läuft auch nach jedem
|
|
# Commit (githooks/post-commit, Log in .git/dev-up.log).
|
|
#
|
|
# 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
|