Skip to content

Commit

Permalink
Set SECRET_KEY_BASE_DUMMY=1 for random value for build with rails 7.1
Browse files Browse the repository at this point in the history
See: https://www.github.com/rails/rails/pull/46760

Note, we don't yet have require_master_key set to true, so this should
work for now.  We'll need to see if that changes when/if we add rails
configuration options going forward.

```
irb(main):003:0> Rails.application.config.require_master_key
=> false
```
  • Loading branch information
jrafanie committed Feb 21, 2025
1 parent b637e14 commit 5b5a0b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM registry.access.redhat.com/ubi9/ubi

ENV TERM=xterm \
APPLIANCE=true \
RAILS_USE_MEMORY_STORE=true
RAILS_USE_MEMORY_STORE=true \
SECRET_KEY_BASE_DUMMY=1

# Force the sticky bit on /tmp - https://bugzilla.redhat.com/show_bug.cgi?id=2138434
RUN chmod +t /tmp
Expand Down

0 comments on commit 5b5a0b6

Please sign in to comment.