Tests / bridge tests (push) Successful in 39s
Tests / writer-pipeline tests (push) Successful in 42s
Tests / writer-pipeline tests (pull_request) Successful in 45s
Tests / frontend lib tests (push) Successful in 55s
Tests / bridge tests (pull_request) Successful in 35s
Tests / frontend lib tests (pull_request) Successful in 47s
Align docker-compose, engines, nvmrc, and CI with the company runtime baseline. Official wordpress:6-php8.5-fpm ships PHP 8.5.6 today; host Node must move to 24.22.1 Active LTS. Paperclip-Issue: BIT-31729 Paperclip-Run: 8b5ae44d-b3e7-430e-871e-d5fcb1bd9fb1
34 lines
969 B
Bash
Executable File
34 lines
969 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Bootstrap a fresh Ubuntu 24.04 LXC for news-platform (news-project-test).
|
|
# Run as root once after CT creation: bash deploy/lxc/setup.sh
|
|
set -euo pipefail
|
|
|
|
log() { echo "[lxc-setup] $*"; }
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
log "apt update / upgrade..."
|
|
apt-get update -y
|
|
apt-get upgrade -y
|
|
|
|
log "installing base packages..."
|
|
apt-get install -y --no-install-recommends \
|
|
ca-certificates curl git gnupg nginx redis-server
|
|
|
|
log "installing Docker..."
|
|
apt-get install -y --no-install-recommends docker.io docker-compose-plugin
|
|
systemctl enable --now docker
|
|
|
|
log "Node.js 24 Active LTS (NodeSource)..."
|
|
curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
|
|
apt-get install -y nodejs
|
|
# Target runtime: Node.js 24.22.1 (Active LTS). Verify with: node -v
|
|
|
|
log "PM2 (global)..."
|
|
npm install -g pm2
|
|
|
|
log "enabling redis..."
|
|
systemctl enable --now redis-server
|
|
|
|
log "done. Next: clone repo to /opt/news-platform and run deploy/scripts/deploy.sh"
|