Skip to content

docker compose up fails to properly install jekyll-diagrams #32

@nicaudinet

Description

@nicaudinet

When doing a fresh install of the website and following the "Running the Website Locally" guide, the docker compose up step fails with the following error:

[+] Running 1/0
 ✔ Container dsai-nlpgithubio-jekyll-1  Created                                                                                                          0.0s
Attaching to jekyll-1
jekyll-1  | /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/resolver.rb:332:in `raise_not_found!': Could not find gem 'jekyll-diagrams' in locally installe
d gems. (Bundler::GemNotFound)
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/resolver.rb:392:in `block in prepare_dependencies'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/resolver.rb:377:in `each'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/resolver.rb:377:in `map'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/resolver.rb:377:in `prepare_dependencies'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/resolver.rb:61:in `setup_solver'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/resolver.rb:28:in `start'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/definition.rb:600:in `start_resolution'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/definition.rb:311:in `resolve'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/definition.rb:553:in `materialize'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/definition.rb:203:in `specs'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/definition.rb:270:in `specs_for'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:18:in `setup'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler.rb:162:in `setup'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/jekyll-4.3.3/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
jekyll-1  |     from /var/lib/gems/3.0.0/gems/jekyll-4.3.3/exe/jekyll:11:in `<top (required)>'
jekyll-1  |     from /usr/local/bin/jekyll:25:in `load'
jekyll-1  |     from /usr/local/bin/jekyll:25:in `<main>'

My temporary fix is to:

  • Run docker compose up
  • Drop into the container shell with docker exec -it dsai-nlpgithubio-jekyll-1 bash
  • Manually install jekyll-diagrams with gem install jekyll-diagrams
  • Quit docker compose up with Control-C
  • Re-run docker compose up

This seems to work, but it would be nice to fix this somehow, but I don't know where the error is coming from 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions