Redmine Docker with Sidekiq container cannot find plugin gems

Configuration details

  • Redmine
  • Mysql
  • Redis
  • Sidekiq (same as redminine but with command: bundle exec sidekiq -C config/sidekiq.yml)

Description of the problem

As soon as you install the plugin, then the Sidekiq container throws bunch of errors saying it is not able to find the plugin gems.

Solution

The problem is that you have not mounted volume for /usr/local/bundle. This is the place where the local gems are stored. If you use a docker-compose, then since this folder is not persistent, the storage gems will be wiped out.

Please do the following:

  • Add a volume to store gems for the container ---> gems:/usr/local/bundle

Or

  • Add a command line to install redmineup gem on creation of the image (in Dockerfile)

Afterward, everything will be fine.

Was this article helpful? Yes  No
97 from 97 found this helpful