Draft
Conversation
Ruby 2.6.3 has been EOL since March 2022 and Gemstash 2.8.0 now requires Ruby >= 3.1, making this a good time to modernize the stack. Key changes: - Ruby 2.6.3 -> 3.4 (via ruby:3.4-alpine) - Gemstash 2.0.0 -> 2.8.0 - pg 0.18.4 -> 1.6.3, mysql2 0.5.2 -> 0.5.7, puma 3.12.6 -> 7.2.0 - MySQL image 5.7.19 -> 8.0, PostgreSQL image 9.6.3 -> 16 - Add yaml-dev for psych gem native extension - Fix postgres volume mount path (/var/lib/mysql -> /var/lib/postgresql/data) - Remove deprecated compose version key and links directive Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Create /home/gemstash/data with correct ownership before VOLUME directive, fixing "Base path is not writable" error - Switch MySQL compose to MariaDB 11, since Alpine's mariadb-dev provides MariaDB Connector C which has SSL incompatibilities with MySQL 8.0's caching_sha2_password + self-signed certs - Update healthcheck to use mariadb CLI and MARIADB_* env vars Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
|
Will leave this in draft and let the SRE team take over: https://intellection.slack.com/archives/C02A8NRKE/p1774965766689369?thread_ts=1774955177.631019&cid=C02A8NRKE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ruby:3.4-alpine/var/lib/mysqlinstead of/var/lib/postgresql/data/home/gemstash/datanow created with correct ownership beforeVOLUMEdirectiveversionkey andlinksdirectivesyaml-devAlpine package for psych gem native extensionmariadb-devprovides MariaDB Connector C, which has SSL incompatibilities with MySQL 8.0'scaching_sha2_passwordauth + self-signed certs. MariaDB is a drop-in replacement and works natively with its own client library.Test results
All tests performed against the built
zappi/gemstash:2.0.0image:docker build -t zappi/gemstash:2.0.0 .— builds successfullydocker compose -f docker-compose.sqlite.yml up— gemstash starts,/healthreturns 200 with all checks OK (heartbeat, storage_read, storage_write, db_read, db_write)docker compose -f docker-compose.mysql.yml up— MariaDB 11 starts healthy, gemstash connects,/healthreturns 200 with all checks OKdocker compose -f docker-compose.postgres.yml up— PostgreSQL 16 starts, gemstash connects,/healthreturns 200 with all checks OKcurl http://localhost:9292/gems/rack-3.2.5.gemreturns HTTP 200 — gem fetching and caching works