Skip to content

static assets are not readable? #358

Closed
@yev

Description

@yev

Hello

I'm using redmine:alpine3.21 on MacOS 15.1.1

I need to serve static files by Puma.

I'm running the container with the following command :

docker run  -d \
    -v /srv/redmine/config/database.yml:/usr/src/redmine/config/database.yml \
    -v /srv/redmine/config/configuration.yml:/usr/src/redmine/config/configuration.yml \
    -v /srv/redmine/config/files:/usr/src/redmine/files \
    -v /var/run/mysqld/mysqld.sock:/tmp/mysqld.sock \
    -v /srv/redmine/config/master.key:/usr/src/redmine/config/master.key \
    -v /srv/redmine/config/credentials.yml.enc:/usr/src/redmine/config/credentials.yml.enc \
    -p 3000:3000 \
    -e RAILS_SERVE_STATIC_FILES=true \
  redmine:alpine3.21

And rails does not serve the static assets:
I got 404 when issuing
wget http://127.0.0.1:3000/assets/tablesort-5.2.1.min-c6968762.js

I was debugging the static.rb middleware and I discovered that the assets generated when container starting are not readable.

  1. docker exec -it --user redmine:redmine REDMINE sh
  2. ruby -e "puts File.readable?('/usr/src/redmine/public/assets/tablesort-5.2.1.min-c6968762.js')" I got false

Could someone explain me why I got this behaviour, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions