Configure full Docker setup and confirm consequential actions

This commit is contained in:
2026-10-09 21:34:47 +01:00
parent f60599230c
commit f700d1beb2
31 changed files with 587 additions and 49 deletions
+19 -2
View File
@@ -1,9 +1,26 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")"
mode=${1:-}
if [ -z "$mode" ] && [ -t 0 ]; then
printf 'Install Docker server + ntfy, or native binaries only? [docker/native] (docker): '
read -r mode
mode=${mode:-docker}
fi
case "$mode" in
--docker|docker)
if [ "$#" -gt 0 ]; then shift; fi
exec python3 scripts/setup-docker.py "$@"
;;
--native|native)
if [ "$#" -gt 0 ]; then shift; fi
;;
'') echo 'Non-interactive binary-only install. Use ./install.sh --docker for the configured server + ntfy.' >&2 ;;
*) echo 'Usage: ./install.sh [--native | --docker [setup options]] (native honors GOBIN and GOPATH)' >&2; exit 2 ;;
esac
if [ "$#" -ne 0 ]; then
echo 'Usage: ./install.sh (honors GOBIN and GOPATH; installs binaries and the OpenCode skill)' >&2
echo 'Usage: ./install.sh --native (honors GOBIN and GOPATH)' >&2
exit 2
fi
cd "$(dirname "$0")"
go install -trimpath ./cmd/...
exec go run ./cmd/pipelines skill install