Template
Extract patterns from 18 projects across two machines (12 local infra + 6 remote personal/business via ssh survey). Ship a reusable Gitea template with AGENTS.md, 5 Crush PreToolUse hooks, git pre-commit/pre-push, a generalized rules engine, shared bash library, Makefile, lifecycle scripts, and gardening loop. Includes the canonical BASELINE-PROMPT.md (13 sections) and PATTERNS.md (standardization scorecard). The repo self-applies: it passes its own shellcheck (zero info-level), make fast, and all check-rules.sh checks. 💘 Generated with Crush Assisted-by: Crush via Crush <crush@charm.land>
20 lines
654 B
Bash
Executable File
20 lines
654 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# up.sh — bring up the project's docker-compose stack.
|
|
# Wrapper around `docker compose up -d` so every project has the same verb.
|
|
# Add project-specific pre/post steps below.
|
|
set -euo pipefail
|
|
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
# shellcheck disable=SC1091
|
|
source "$HERE/lib/common.sh"
|
|
REPO_ROOT="$(repo_root)"
|
|
cd "$REPO_ROOT"
|
|
|
|
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.yml}"
|
|
[ -f "$COMPOSE_FILE" ] || die "no $COMPOSE_FILE — copy docker-compose.yml.example to $COMPOSE_FILE first"
|
|
|
|
log_step "Bringing up stack ($COMPOSE_FILE)"
|
|
docker compose -f "$COMPOSE_FILE" up -d
|
|
log_ok "stack up"
|
|
docker compose -f "$COMPOSE_FILE" ps
|