feat: add one-line installer script (#7466)#7485
Merged
JohnMcLear merged 4 commits intodevelopfrom Apr 7, 2026
Merged
Conversation
Adds bin/installer.sh, a small POSIX shell script that: - Verifies prerequisites (git, Node.js >= 18) - Installs pnpm globally if missing (with sudo fallback) - Clones etherpad-lite (configurable branch / dir) - Runs `pnpm i` and `pnpm run build:etherpad` - Optionally starts Etherpad if ETHERPAD_RUN=1 Users can now install Etherpad with a single command: curl -fsSL https://raw.githubusercontent.com/ether/etherpad-lite/master/bin/installer.sh | sh README updated to feature the one-liner above the existing Docker-Compose / manual install instructions. Closes #7466 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Review Summary by QodoAdd one-line installer script for Etherpad deployment
WalkthroughsDescription• Add POSIX shell installer script for one-command Etherpad setup • Script verifies prerequisites (git, Node.js >= 18) and installs pnpm • Supports configurable installation directory, branch, and auto-start options • Update README with quick install instructions and one-liner examples Diagramflowchart LR
User["User runs curl one-liner"] --> Installer["bin/installer.sh"]
Installer --> Check["Check prerequisites<br/>git, Node.js >= 18"]
Check --> Pnpm["Install pnpm if needed"]
Pnpm --> Clone["Clone etherpad-lite repo"]
Clone --> Install["Run pnpm i"]
Install --> Build["Run pnpm run build:etherpad"]
Build --> Done["Installation complete"]
Done --> Optional["Optional: Start with ETHERPAD_RUN=1"]
File Changes1. bin/installer.sh
|
Code Review by Qodo
1.
|
- bin/installer.ps1: PowerShell port of installer.sh so the one-liner also works on Windows via 'irm ... | iex'. - .github/workflows/installer-test.yml: end-to-end CI that runs each installer against the PR's own commit (via ETHERPAD_REPO/BRANCH env vars), verifies clone + node_modules + admin SPA artifacts, and smoke-tests by starting Etherpad and curling /api. Runs on ubuntu-latest, macos-latest, and windows-latest. Includes a shellcheck job for installer.sh. - README: feature the Windows one-liner alongside the POSIX one. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Start-Process can't run pnpm.cmd directly ("not a valid Win32 application").
Wrap it via cmd.exe /c instead, and bump the wait window to 90s for slower
Windows runners. Also dump stderr alongside stdout when the smoke test
fails for easier debugging.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Two correctness issues caught by Qodo:
1. Node version mismatch: installer required Node >= 18, but the repo's
engines.node is >= 20. Bump REQUIRED_NODE_MAJOR to 20 in both shell
and PowerShell installers, and update the README's quick-install
prerequisite and Requirements section to match.
2. Branch ignored for existing checkouts: when ETHERPAD_DIR already
existed, the script ran 'git pull --ff-only' on whatever branch
happened to be checked out, ignoring ETHERPAD_BRANCH and never
verifying ETHERPAD_REPO. The existing-dir path now:
- validates the remote URL matches ETHERPAD_REPO
- refuses to clobber uncommitted changes (excluding pnpm-lock.yaml,
which pnpm i rewrites during install)
- fetches with --tags --prune
- checks out ETHERPAD_BRANCH as a branch or detaches at it as a tag
- prints the resulting commit short SHA for clarity
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
bin/installer.sh, a small POSIX shell script so users can install Etherpad with a single command (closes #7466):curl -fsSL https://raw.githubusercontent.com/ether/etherpad-lite/master/bin/installer.sh | shThe installer:
git, Node.js >= 18)pnpmglobally if missing (with sudo fallback)./etherpad-lite(configurable viaETHERPAD_DIR)pnpm iandpnpm run build:etherpadETHERPAD_RUN=1is setREADME updated to feature the one-liner prominently above the existing Docker-Compose and manual install instructions.
Configurable env vars
ETHERPAD_DIRetherpad-liteETHERPAD_BRANCHmasterETHERPAD_REPOhttps://github.com/ether/etherpad-lite.gitETHERPAD_RUN01, start Etherpad after installNO_COLORTest plan
pnpmalready on PATHpnpm(the installer will runnpm install -g pnpm, possibly via sudo)🤖 Generated with Claude Code