mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-18 16:01:18 +00:00
89e5533dd0
scripts/install-worker.sh is a single bash script any Debian/Ubuntu/RHEL/ Fedora/Arch/Alpine VPS can curl|sh to add a worker to the fleet. Identity is bound to the VPS's public IPv4 via UUIDv5 (URL namespace): same IP → same worker (reputation persists across reinstalls) new IP → new worker (fresh identity, no inherited reputation) The installer detects the public IP via api.ipify.org / ifconfig.me / checkip.amazonaws.com, derives the deterministic UUID, installs Docker if missing, writes /etc/warmbly/worker.env (0600) and /etc/warmbly/worker.id, installs a systemd unit that runs the worker container with --hostname <uuid>, and starts the service. Supports --install/--update/--uninstall/--purge/--status, --env-file for non-interactive config, --ip override, --image override, and a full set of per-credential flags. Worker reads its UUID from os.Hostname() at startup, so the systemd hostname value becomes the worker identity — no separate registration step needed.