dev: add user-installed gems to PATH (#833)

This is important for usability of things like discourse_theme, and editor tooling (e.g. ruby-lsp)
This commit is contained in:
David Taylor 2024-08-20 14:51:14 +01:00 committed by GitHub
parent 8aff5b6588
commit 7b0e4b45b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ ADD sudoers.discourse /etc/sudoers.d/discourse
RUN sudo -u discourse bundle config set --global path /home/discourse/.bundle/gems
# Add user-install ruby gems to PATH
RUN echo 'PATH="$(ruby -r rubygems -e "puts Gem.user_dir")/bin:$PATH"' >> /home/discourse/.profile
# get redis going
ADD redis.template.yml /pups/redis.yml
RUN /pups/bin/pups /pups/redis.yml