Skip to content

chore: switch from bitnami/mariadb to standard mariadb:10.11#5

Merged
wdconinc merged 1 commit intomainfrom
standard-mariadb
Apr 18, 2026
Merged

chore: switch from bitnami/mariadb to standard mariadb:10.11#5
wdconinc merged 1 commit intomainfrom
standard-mariadb

Conversation

@wdconinc
Copy link
Copy Markdown
Collaborator

What

Replace bitnami/mariadb:latest with mariadb:10.11 (official Docker Hub image).

Why

  • The bitnami variant has no advantages here; the standard image is simpler and more widely maintained
  • bitnami/mariadb:latest currently resolves to 12.x, which triggers InnoDB error 1020 ("Record has changed since last read") in the Harvester stager's SELECT ... FOR UPDATE / UPDATE pattern — causing jobs to stall in to_transfer state
  • Pinning to the LTS release (10.11) avoids this

Changes

Before After
image: bitnami/mariadb:latest image: mariadb:10.11
volume: /bitnami/mariadb volume: /var/lib/mysql

MARIADB_* env var names are unchanged — the official image supports them since 10.4.

The bitnami/mariadb image offers no advantages over the official mariadb
image for this use case. Switch to the official image and:
- Pin to 10.11 LTS (bitnami/mariadb:latest resolves to 12.x which
  triggers InnoDB error 1020 in the Harvester stager)
- Use the standard data directory /var/lib/mysql instead of the
  bitnami-specific /bitnami/mariadb

MARIADB_* env var names are unchanged; the official mariadb image has
supported them since 10.4.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 18, 2026 23:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the local/CI Docker Compose stack to use the official MariaDB image pinned to the 10.11 LTS line to avoid issues seen with the Bitnami latest tag drifting to 12.x.

Changes:

  • Switch MariaDB service image from bitnami/mariadb:latest to mariadb:10.11.
  • Update the MariaDB data volume mount path from /bitnami/mariadb to /var/lib/mysql.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker-compose.yml
Comment on lines 205 to +206
volumes:
- harvester-db-data:/bitnami/mariadb
- harvester-db-data:/var/lib/mysql
Copy link

Copilot AI Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the mount point for the existing named volume harvester-db-data from /bitnami/mariadb to /var/lib/mysql will make any previously-initialized data in that volume invisible to the new container (effectively starting with an empty datadir), which can look like accidental data loss and can break local dev/CI runs that reuse volumes. Consider either renaming the volume (so the new image gets a fresh volume) or adding an explicit migration/reset note next to this volume line (e.g., requiring docker compose down -v when switching images).

Copilot uses AI. Check for mistakes.
@wdconinc wdconinc merged commit f24df30 into main Apr 18, 2026
5 checks passed
@wdconinc wdconinc deleted the standard-mariadb branch April 18, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants