$ the-wire · showcase
Rails fixes docker-entrypoint to honor extra server flags
By RepoJournal · Filed · About Rails
Rails corrected the generated docker-entrypoint script so extra bin/rails server flags no longer skip database preparation.
Rails fixed the generated bin/docker-entrypoint script [1][2]. The check used to require ./bin/rails and server to be exactly the last two arguments, so any additional flag, such as -b 0.0.0.0 for Docker/Podman network binding, shifted server out of position and silently skipped db:prepare. The script now checks the first two arguments instead, matching Docker's CMD convention and ensuring the database is prepared regardless of extra flags. This affects existing Rails apps using the default Dockerfile; regeneration is needed to pick up the fix [3].
Xavier Noria added the markup directive to require-only files [4], simplifying the process of identifying files pending conversion from RDoc to Markdown. This is part of an ongoing documentation effort, and it roughly doubles the number of files marked as converted. Also continuing that effort, active_support/xml_mini documentation was converted from RDoc to Markdown [5].
Action items
- → Regenerate bin/docker-entrypoint in existing apps to pick up the fix rails/rails [plan]
- → Review the docker-entrypoint change if you run Rails in Docker/Podman rails/rails [immediate]
References
- [1] Fix docker-entrypoint check to support extra bin/rails server flags ↗ rails/rails
- [2] Fix docker-entrypoint check to support extra bin/rails server flags ↗ rails/rails
- [3] Merge pull request #58675 from iamdipak39p/fix-docker-entrypoint-server-flags ↗ rails/rails
- [4] Add the markup directive to require-only files ↗ rails/rails
- [5] RDoc to Markdown in active_support/xml_mini ↗ rails/rails