revert(docker): remove SSE4.2 startup hard-fail check

Revert 3f32d8e828 to restore startup on CPUs without SSE4.2 support.

Closes #129
This commit is contained in:
neon
2026-05-28 15:04:25 +00:00
parent bfb4d2d4b1
commit 8ee6929f55
2 changed files with 0 additions and 28 deletions
-12
View File
@@ -72,18 +72,6 @@ Note: The demo includes a sample library of public domain books. Some features a
--- ---
## System Requirements
| Component | Minimum |
| ------------ | ------------------------------------------------------------------------------- |
| CPU (x86-64) | SSE4.2 support required - Intel Core (Nehalem, 2008+) or AMD (Bulldozer, 2011+) |
| RAM | 1 GB (2 GB+ recommended) |
| Docker | 20.10+ |
> **CPU note:** The image processing library used for book covers requires SSE4.2 instructions. CPUs that pre-date Intel Nehalem (2008) or AMD Bulldozer (2011) do not meet this requirement - including the entire Intel Core 2 series, AMD Phenom, and AMD Turion families. If your CPU is incompatible, the container will exit immediately with a clear error message rather than looping silently.
---
## Quick Start ## Quick Start
```bash ```bash
-16
View File
@@ -52,20 +52,6 @@ check_writable_current_user() {
fi fi
} }
check_cpu_sse42() {
if [ ! -f /proc/cpuinfo ]; then
return 0
fi
if ! grep -q 'sse4_2' /proc/cpuinfo; then
log "CPU does not support SSE4.2 instructions."
log "The image processing library (sharp) requires a CPU with SSE4.2 support."
log "Minimum supported CPUs: Intel Core (Nehalem, 2008 or newer) or AMD (Bulldozer, 2011 or newer)."
log "Incompatible CPUs include: Intel Core 2 series, AMD Phenom, AMD Turion, and other pre-2011 AMD chips."
log "Run 'docker stop <container-name>' to stop this container, then upgrade your hardware."
exit 1
fi
}
if [ -z "$DATABASE_URL" ]; then if [ -z "$DATABASE_URL" ]; then
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DB}" export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DB}"
fi fi
@@ -106,8 +92,6 @@ fi
export NODE_MAX_OLD_SPACE_SIZE export NODE_MAX_OLD_SPACE_SIZE
check_cpu_sse42
ensure_dir "$APP_DATA_PATH" ensure_dir "$APP_DATA_PATH"
ensure_dir "$APP_DATA_PATH/covers" ensure_dir "$APP_DATA_PATH/covers"
ensure_dir "$book_bucket_path" ensure_dir "$book_bucket_path"