Install Pipelines natively by default on macOS and Linux
Add scripts/setup-native.py and make ./install (and --native) build the server, the CLI and ntfy from source into ~/.local/share/pipelines, detect an existing host OpenCode and Pi instead of installing them, install the packaged authoring skill, migrate an existing Docker database and ntfy auth store, save the host client default and start both services. ./install --docker keeps the previous Docker server + ntfy installation unchanged. ntfy is compiled from its pinned Go module on every host because upstream publishes no macOS server binary (its darwin asset is built with -tags noserver); its cgo SQLite driver is why a C compiler is now required natively. The ntfy credential bootstrap and the client default writer are shared by both installers, installation.Load resolves symlinked prefixes, the Docker migration copies the SQLite write-ahead log so the newest definitions and runs are not lost, and the account subcommands read the generated configuration through NTFY_CONFIG_FILE. Verified on macOS: 115 Python tests, go build/vet/test, and scratch installs that migrate 9 pipelines and 31 runs, build ntfy v2.30.0 and start both services healthy on spare ports before stopping them.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
Configure two independent model defaults:
|
||||
|
||||
```sh
|
||||
./install --harness pi # Docker setup without OpenCode login
|
||||
./install --docker --harness pi # Docker setup without OpenCode login
|
||||
./install --opencode --default
|
||||
./install --pi
|
||||
pipelines harness
|
||||
@@ -34,9 +34,11 @@ On existing Docker setups, the reconfiguration commands
|
||||
resolve and verify the current OpenCode V2/Pi releases, then operate inside the
|
||||
container without restarting it. A rebuild is required only when the verified
|
||||
release image identity (versions/digest) differs from the resolved releases; a
|
||||
model/login-only change does not rebuild. A full `./install` always invokes the
|
||||
Docker build for a dirty source and relies on layer caching. Installation is
|
||||
Docker-only; reconfiguration never falls back to host harness execution.
|
||||
model/login-only change does not rebuild. A full `./install --docker` always
|
||||
invokes the Docker build for a dirty source and relies on layer caching. Harness
|
||||
installation stays Docker-only: the default native setup only detects an existing
|
||||
host OpenCode/Pi and never installs, upgrades or downloads them, and
|
||||
reconfiguration never falls back to host harness execution.
|
||||
Container credentials and accounts are separate from host credentials and are
|
||||
reused on reinstall/reconfigure.
|
||||
Defaults affect only new drafts/starters, not existing immutable versions.
|
||||
|
||||
Reference in New Issue
Block a user