initial scaffold: emdash catalog, helm chart, woodpecker pipeline, ddev
- app/: Emdash scaffold (Astro 6, node target) with cmses/plugins/pages collections - app/seed/seed.json: WordPress→Emdash parity for kotkanagrilli.fi (~30 entries) - Dockerfile + docker/entrypoint.sh: multi-stage build, single PVC at /app/state - deploy/helm/: chart mirroring emdash-kotkanagrilli (single-replica, sqlite, kotkan) - deploy/fleet-overlay/: HelmRelease/source/image-automation templates for anton-helm-workloads (staging + production) - .woodpecker/container.yaml: arm64 build, three OCI tags per push (immutable 0.1.<pipeline> + floating <branch> + <branch>-latest) - .ddev/: local dev with nginx proxy to emdash on :4321 - README/DEPLOYMENT/ARCHITECTURE/CLAUDE: docs covering the three-repo pipeline (cms-plugins + anton-helm-workloads + Gitea OCI registry)
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# Ensure persistent state dirs exist (volume may be empty on first boot).
|
||||
mkdir -p /app/state/uploads
|
||||
|
||||
# Bootstrap on first run: create data.db and apply migrations.
|
||||
# emdash init is expected to be idempotent on subsequent boots.
|
||||
if [ ! -f /app/state/data.db ]; then
|
||||
echo "[entrypoint] no data.db found in /app/state, running emdash init"
|
||||
node_modules/.bin/emdash init
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user