Refresh bestsolartech WordPress image (6.7-php8.3 → current) #4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
bestsolartech_wp runs wordpress:6.7-php8.3-apache with an image built 2025-04-10 (~16 months stale), found during the 2026-08-12 fleet staleness audit. WordPress core/DB migrations and plugin compatibility mean this stays excluded from Watchtower; it's a deliberate manual update.
Steps
~/services/bestsolartech/docker-compose.ymlon jared@15.204.247.153; identify wp-content volume and the mariadb container (bestsolartech_db, mariadb:10.11).docker exec bestsolartech_db mariadb-dump ...with creds from the compose env — REDACT in any output) and tar the wp-content volume to ~/backups/bestsolartech-pre-update-/.docker compose pull && up -d; visit /wp-admin to trigger/confirm the DB upgrade prompt if shown.In scope
Core image refresh + DB backup + verification. Pinning the tag.
Out of scope
Plugin/theme updates beyond what the core bump forces (note them as follow-ups). mariadb major upgrade. Watchtower enrollment.
Acceptance criteria
Starting work: refreshing bestsolartech WordPress image from 6.7-php8.3-apache to current stable pinned tag. Will back up DB + wp-content before touching anything.
Done. Base image refreshed: wordpress:6.7-php8.3-apache -> wordpress:7.0.3-php8.3-apache (PHP 8.3.33, current stable line at time of work — WP.org reports 7.0.4 as latest but 7.0.4-php8.3-apache tag not yet published to Docker Hub, so pinned to latest available 7.0.3).
Baseline (pre-change): home=200, wp-admin=302, WP core (in bind-mounted ./wordpress dir) = 6.4.9, image was wordpress:6.7-php8.3-apache.
Post-change: home=200, wp-admin=302, WP core = 6.4.9 (unchanged — see note below), image now wordpress:7.0.3-php8.3-apache, PHP 8.3.33. Homepage body verified rendering real content (BestSolarTech/Solar strings present). Container logs clean, mariadb_db healthy, no fatals.
Note: WP core version did NOT change (stayed 6.4.9) despite the image bump. The compose mounts the full webroot (./wordpress:/var/www/html) as a bind mount; the official wordpress image's entrypoint only seeds core files into an empty webroot and does not overwrite an existing install, so bumping the image tag only refreshes the PHP/Apache/OS layer, not WP core itself. Forcing an actual core bump to 6.4.9->7.0.x would need a deliberate wp-admin/wp-cli core update with a plugin compatibility pass — flagging as a follow-up, out of scope here per the ticket (core bump beyond image refresh, plugin/theme updates).
Backups taken before any change:
Commit: a850171a3e7acf2202452f4c86b8831155b00c08 (ovh-services repo) - 'bestsolartech: pin wordpress 7.0.3-php8.3-apache', pushed to main.
Follow-ups suggested (not done, out of scope):
Resolution
Done: bestsolartech WordPress image refreshed from wordpress:6.7-php8.3-apache to wordpress:7.0.3-php8.3-apache, with pre-update DB dump and wp-content backup.
Evidence: docker ps shows bestsolartech_wp on wordpress:7.0.3-php8.3-apache; ~/backups has bestsolartech-db-pre-refresh-20260812-123933.sql.gz (1.8MB) and bestsolartech-wpcontent-pre-refresh-20260812-123933.tar.gz (759MB); https://bestsolartech.com (Host header) returns 200; /wp-admin returns 302 (login redirect, not an error); docker logs show no fatal/PHP errors.
Follow-ups: Plugin/theme updates beyond the core bump were out of scope for this ticket and not evaluated.
Approved-by: jared