Giter VIP home page Giter VIP logo

Comments (4)

rubys avatar rubys commented on June 25, 2024

I'm assuming that you are running off of main as that hasn't been released?

Not documented very well, but --sudo will make the whole /rails tree owned by rails

from dockerfile-rails.

olbrich avatar olbrich commented on June 25, 2024

No, I'm using 1.2.5

from dockerfile-rails.

rubys avatar rubys commented on June 25, 2024

It looks like the following does not give ownership over /rails, just the files in that directory:

COPY --from=build --chown=rails:rails /rails /rails

I'm leaning towards adding an option that does a touch .irb_history and ensures that it is owned by the rails user. This way I won't have to worry about applications that have an existing .irbrc file. Thoughts?

from dockerfile-rails.

olbrich avatar olbrich commented on June 25, 2024

That would probably work. I'm also thinking that people are likely to mount volumes for the logs directory so they can persist or otherwise retain them. Moving the .irb_history file into that directory would allow that history to be persisted as well (which might be useful for security audits or just convenience). But maybe that's something that could just be documented.

from dockerfile-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.