Repository navigation
feat(adapters): Ruby build recipe — stock Rails apps cannot bundle install today - #469
Merged
Hydralerne merged 3 commits intoSep 16, 2026
Conversation
ruby:*-slim installs gcc/make to compile Ruby and then purges them, so bundle install could not build pg or bootsnap and a stock Rails app failed on its first deploy. Splits a builder stage carrying the toolchain from a runtime stage carrying only the shared libs the gems link against. Also excludes dev/test gems, copies the resolved bundle forward instead of re-installing, sets a production RAILS_ENV -- development Rails rejects the deployed hostname via config.hosts -- and drops root. Dispatch is not gated on needsMultiStage the way the PHP branch is: Ruby declares one image for both stages, so that gate would skip the recipe.
Hydralerne
changed the base branch from
main
to
feat/bugfix-batch-2026-09-16
September 16, 2026 05:04
Hydralerne
merged commit Sep 16, 2026
9ede776
into
oblien:feat/bugfix-batch-2026-09-16
4 of 8 checks passed
This was referenced Sep 16, 2026
Open
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.
Rails builds using the current Ruby images can fail on native gems because the slim image has no compiler, or fail at runtime because Bundler settings and shared libraries do not match the build. This adapts the contributor’s Ruby recipe to the current build planner and targets the bug integration branch for #892.
The builder installs native build dependencies; the runtime keeps the linked libraries and runs as an unprivileged user. Debian and Alpine images use their own package manager and account commands. Both stages share the Bundler production settings and reuse the existing workspace, build environment and runtime copy helpers. Rails storage is writable and persists through the existing volume mechanism from #468. This addresses the Ruby deployment failures discussed in #231; the broader process-model request remains open.
Validation:
The original author’s commit is retained; current-architecture adaptations are merged into this PR before integration into #892.