GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OneClickInstall-Docs/CLAUDE.md at master · ONLYOFFICE/OneClickInstall-Docs

Expand file tree

/

CLAUDE.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
95 lines (74 loc) · 4.03 KB
/

CLAUDE.md

Copy path

File metadata and controls

95 lines (74 loc) · 4.03 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Project Overview

ONLYOFFICE OneClickInstall-Docs — one-click installer scripts for ONLYOFFICE Docs supporting Docker and native Linux package (DEB/RPM) deployment methods.

Tech Stack

Bash/Shell, Docker, Vagrant (testing), GitHub Actions, jq

Project Structure

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

Usage

# 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

Testing

# 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

Key Patterns

  • docs-install.sh detects OS and routes to Docker or package installer
  • install.sh handles full Docker lifecycle: pull, configure, run
  • install-Debian/ and install-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

Review Focus

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

Git Workflow

  • Main branch: master
  • Integration branch: develop
  • Branch naming: feature/*, bugfix/*, hotfix/*, release/*
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.