Configure full Docker setup and confirm consequential actions
This commit is contained in:
+19
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user