Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local docker-compose fails with check_for_activated_spec #150

Closed
PapaBravo opened this issue Jan 8, 2024 · 0 comments
Closed

Local docker-compose fails with check_for_activated_spec #150

PapaBravo opened this issue Jan 8, 2024 · 0 comments

Comments

@PapaBravo
Copy link
Contributor

When running docker-compose up on the current (d4f4036285d3d234eb3bce2a2bc37c0e870ce54c) main branch, the serve command fails with the following error message

...
Starting qualityarc42org-site_jekyll_1 ... done
Attaching to qualityarc42org-site_jekyll_1
jekyll_1  | ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux-musl]
jekyll_1  | /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.25/lib/bundler/runtime.rb:308:in `check_for_activated_spec!': You have already activated public_suffix 5.0.0, but your Gemfile requires public_suffix 4.0.7. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
jekyll_1  |     from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.25/lib/bundler/runtime.rb:25:in `block in setup'
jekyll_1  |     from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.25/lib/bundler/spec_set.rb:155:in `each'
jekyll_1  |     from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.25/lib/bundler/spec_set.rb:155:in `each'
jekyll_1  |     from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.25/lib/bundler/runtime.rb:24:in `map'
jekyll_1  |     from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.25/lib/bundler/runtime.rb:24:in `setup'
jekyll_1  |     from /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.25/lib/bundler.rb:161:in `setup'
jekyll_1  |     from /usr/gem/gems/jekyll-4.2.2/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
jekyll_1  |     from /usr/gem/gems/jekyll-4.2.2/exe/jekyll:11:in `<top (required)>'
jekyll_1  |     from /usr/gem/bin/jekyll:25:in `load'
jekyll_1  |     from /usr/gem/bin/jekyll:25:in `<main>'
qualityarc42org-site_jekyll_1 exited with code 1

Following the hint in the error message fixes the issue. Using bundle exec jekyll serve is shown on the jekyll blog and recommended in this stackoverflow answer.
PR for the simple fix is following shortly.

gernotstarke added a commit that referenced this issue Jan 10, 2024
…ompose

Use bundle exec in docker compose, thanx @PapaBravo for caring-for-details :-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant