Files
borgmatic/scripts/dev-docs
T

17 lines
482 B
Bash
Executable File

#!/bin/bash
set -e
if command -v podman >/dev/null 2>&1; then
if ! command -v podman-compose >/dev/null 2>&1; then
echo "Error: podman is installed, but podman-compose is missing." >&2
exit 1
fi
COMPOSE_CMD="podman-compose"
export CONTAINER_SOCKET_PATH="${XDG_RUNTIME_DIR:-/run/user/$UID}/podman/podman.sock"
else
COMPOSE_CMD="docker-compose"
fi
BUILDKIT_PROGRESS=plain $COMPOSE_CMD --file docs/docker-compose.yaml up --build --force-recreate