devopskube / redmine_openid_connect

Redmine OpenId Connect Plugin - based on redmine_cas
65 stars 96 forks source link

Unable to install the plugin in redmine docker #26

Open prathapvr opened 5 years ago

prathapvr commented 5 years ago

After cloning the project inside plugins folder and run bundle install command getting below error

Your Gemfile has no gem server sources. If you need gems that are not already on your machine, add a line like this to your Gemfile:
source 'https://rubygems.org'
Could not find gem 'httparty (~> 0.13.7)' in any of the gem sources listed in your Gemfile.
SECtim commented 4 years ago

I solved that issue locally by allowing higher versions of httpparty, i.e., I changed the Gemfile to

gem 'httparty', '>= 0.13.7'

So far, I did not run into any issues by doing so.

ataraxus commented 4 years ago

I'm also running into this issue

FROM redmine:4.0.5-alpine

RUN git clone https://github.com/devopskube/redmine_openid_connect.git /usr/src/redmine/plugins/redmine_openid_connect
RUN cd /usr/src/redmine/plugins/ && bundle install && bundle exec rake redmine:plugins:migrate

I'm getting:

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "json":
  In snapshot (Gemfile.lock):
    json (= 2.2.0)

  In Gemfile:
    httparty (~> 0.13.7) was resolved to 0.13.7, which depends on
      json (~> 1.8)

    simplecov (~> 0.14.1) was resolved to 0.14.1, which depends on
      json (>= 1.8, < 3)

Running `bundle update` will rebuild your snapshot from scratch, using only

Why was @SECtim s response marked offtopic? it was also my first guess...

cheeZery commented 3 years ago

I had the same problem and fixed it by not running bundle install inside the plugin's folder but in the root folder of the Redmine application. (But that also might be obvious for anyone who isn't such a Ruby noob as I am)