mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Ruby 4.0.9, Rails 8.1 defaults, newest gems; admin About page
- Ruby 3.2.3 (end of life) -> 4.0.9 in the Docker image and .ruby-version - config.load_defaults 8.1 - All gems at their newest compatible versions, including json 3.1, roo 4.0, rubyzip 3.7 and solid_cable 4.1 - Admin -> About: running revision and build time, uptime, Ruby/Rails/ SQLite and key gem versions, which features are configured (never secret values), storage and database sizes, background job health, record counts. The image takes APP_REVISION and APP_BUILT_AT build args. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ac4da93aaf
commit
2b0a2f1949
13 files changed
+295
-50
No files matched your search
+8
-1
@@ -8,7 +8,7 @@
|
||||
# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
|
||||
|
||||
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
|
||||
ARG RUBY_VERSION=3.2.3
|
||||
ARG RUBY_VERSION=4.0.9
|
||||
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
|
||||
|
||||
# Rails app lives here
|
||||
@@ -65,6 +65,13 @@ RUN groupadd --system --gid 1000 rails && \
|
||||
chown -R rails:rails db log storage tmp
|
||||
USER 1000:1000
|
||||
|
||||
# Shown on the admin About page: docker build --build-arg APP_REVISION=$(git rev-parse --short HEAD) \
|
||||
# --build-arg APP_BUILT_AT=$(date -u +%FT%TZ) … (last, so it doesn't bust the layer cache)
|
||||
ARG APP_REVISION=""
|
||||
ARG APP_BUILT_AT=""
|
||||
ENV APP_REVISION=$APP_REVISION \
|
||||
APP_BUILT_AT=$APP_BUILT_AT
|
||||
|
||||
# Entrypoint prepares the database.
|
||||
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user