ONLYOFFICE OneClickInstall-Docs — one-click installer scripts for ONLYOFFICE Docs supporting Docker and native Linux package (DEB/RPM) deployment methods.
Bash/Shell, Docker, Vagrant (testing), GitHub Actions, jq
docs-install.sh — Community Edition wrapper (detects OS, routes to installer)
install.sh — Docker installation script
install-Debian.sh — Debian/Ubuntu package installer wrapper
install-RedHat.sh — RHEL/CentOS/Amazon package installer wrapper
install-Debian/ — Debian-specific scripts
install-preq.sh — Prerequisites
install-app.sh — App installation (APT)
check-ports.sh — Port checks
tools.sh — Utility functions
uninstall.sh — Uninstall
install-RedHat/ — RedHat-specific scripts
install-preq.sh — Prerequisites (standard)
install-preq-amzn.sh — Prerequisites (Amazon Linux)
install-app.sh — App installation (YUM/DNF)
check-ports.sh — Port checks
tools.sh — Utility functions
uninstall.sh — Uninstall
tests/vagrant/ — Vagrant multi-OS test infrastructure
tests/smoke/ — Selenium smoke tests: editors open/edit/save via the test example
# Download and run (Community Edition) curl -O https://download.onlyoffice.com/docs/docs-install.sh sudo bash docs-install.sh # Key flags --installationtype community|enterprise|developer --docsport <PORT> (default: 80) --jwtenabled true|false --jwtsecret <SECRET> --letsencryptdomain <DOMAIN> --letsencryptmail <EMAIL> --skiphardwarecheck true|false --update true|false --uninstall true|false
# Vagrant-based multi-OS testing cd tests/vagrant TEST_CASE='--local-install' OS='base-ubuntu2404' vagrant up # Docker installation test sudo bash install.sh --skiphardwarecheck true # Browser smoke tests against any installed Docs (local Chrome, driver via Selenium Manager) pip install -r tests/smoke/requirements.txt SERVER_URL=http://<host> CHECK_ADMINPANEL=true python3 -m pytest tests/smoke/test_docs_smoke.py -v -s
Smoke test env vars: SERVER_URL (default http://localhost), CHECK_ADMINPANEL=true (strict: DEB/RPM always ship the admin panel, 404 fails), EXPECTED_VERSION (assert version after update), SELENIUM_REMOTE_URL (remote WebDriver, e.g. selenium container on ARM), CHROME_BIN/CHROMEDRIVER_PATH (explicit browser paths). On Windows also set PYTHONUTF8=1.
CI coverage: docker workflow tests a community+enterprise matrix (4testing-* images on branches, stable on master) and waits for real readiness — container healthy, then the entrypoint's final log-tail process (fonts/static/plugins generation finished). Vagrant jobs reach the VM through forwarded localhost:8080; nginx inside the VM also listens on 8080 so server-side URLs built from the Host header resolve.
Supported OS: RHEL 8/9, CentOS 8-10 Stream, Amazon Linux 2023, Debian 11-13, Ubuntu 20.04/22.04/24.04/26.04, ARM64
docs-install.shdetects OS and routes to Docker or package installerinstall.shhandles full Docker lifecycle: pull, configure, runinstall-Debian/andinstall-RedHat/mirror each other in structure- Hardware checks: 2 CPU cores, 4GB RAM, 40GB disk minimum
- Three editions: Community, Enterprise, Developer
- JWT auto-generation if secret not provided
- Let's Encrypt integration for HTTPS
Shell: POSIX compatibility, quoting, set -e, error handling, root checks
Security: Credential handling, JWT secret generation, SSL/TLS setup
Portability: Multi-distro support (Debian/RedHat/Amazon), architecture detection (x86_64/aarch64)
Docker: Image pull logic, container configuration, registry auth
Idempotency: Install/update/uninstall scripts must be safe to re-run
- Main branch:
master - Integration branch:
develop - Branch naming:
feature/*,bugfix/*,hotfix/*,release/*