Skip to content

Issue with docker image #3321

@yudhanjaya

Description

@yudhanjaya

Have you checked that your issue isn't already filed?

  • I read through FAQ and searched through the past issues, none of which addressed my issue.
  • Yes, I have checked that this issue isn't already filed.

Bug description

Docker throws a Bundler error involving Jekyll-Terser

How to reproduce the bug

Replicated the instructions on https://github.com/alshedivat/al-folio/blob/main/INSTALL.md for Docker

It looks like bundler either cannot find jekyll or is having some issue with jekyll-terser.git not yet being checked out.

Jekyll is installed - a bundle install on the gemfile shows everything installed without issues, so unless there's a mismatch, it isn't an inability to install packages.

Error messages and logs

sudo docker compose up
Attaching to jekyll-1
jekyll-1  | Entry point script running
jekyll-1  | Gemfile.lock is not tracked by git, removing it
jekyll-1  | bundler: failed to load command: jekyll (/usr/local/bundle/bin/jekyll)
jekyll-1  | /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/git/git_proxy.rb:367:in 'Bundler::Source::Git::GitProxy#allowed_with_path': The git source https://github.com/RobertoJBeltran/jekyll-terser.git is not yet checked out. Please run `bundle install` before trying to start your application (Bundler::GitError)
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/git/git_proxy.rb:78:in 'Bundler::Source::Git::GitProxy#revision'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/git.rb:253:in 'Bundler::Source::Git#revision'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/git.rb:130:in 'Bundler::Source::Git#install_path'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/path.rb:123:in 'Bundler::Source::Path#expanded_path'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/path.rb:164:in 'Bundler::Source::Path#load_spec_files'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/git.rb:230:in 'Bundler::Source::Git#load_spec_files'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/path.rb:97:in 'Bundler::Source::Path#local_specs'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source/git.rb:198:in 'Bundler::Source::Git#specs'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source.rb:62:in 'Bundler::Source#spec_names'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source_map.rb:21:in 'block in Bundler::SourceMap#all_requirements'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source_map.rb:20:in 'Array#map'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/source_map.rb:20:in 'Bundler::SourceMap#all_requirements'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:1088:in 'Bundler::Definition#find_source_requirements'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:1080:in 'Bundler::Definition#source_requirements'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:636:in 'Bundler::Definition#resolution_base'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:617:in 'Bundler::Definition#resolver'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:745:in 'Bundler::Definition#start_resolution'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:342:in 'Bundler::Definition#resolve'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:653:in 'Bundler::Definition#materialize'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:237:in 'Bundler::Definition#specs'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/definition.rb:304:in 'Bundler::Definition#specs_for'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/runtime.rb:18:in 'Bundler::Runtime#setup'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler.rb:167:in 'Bundler.setup'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/setup.rb:32:in 'block in <top (required)>'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/ui/shell.rb:173:in 'Bundler::UI::Shell#with_level'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/ui/shell.rb:119:in 'Bundler::UI::Shell#silence'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/setup.rb:32:in '<top (required)>'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/cli/exec.rb:57:in 'Kernel#require_relative'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/cli/exec.rb:57:in 'Bundler::CLI::Exec#kernel_load'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/cli.rb:452:in 'Bundler::CLI#exec'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor.rb:538:in 'Bundler::Thor.dispatch'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/cli.rb:29:in 'Bundler::CLI.start'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/exe/bundle:28:in 'block in <top (required)>'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/lib/bundler/friendly_errors.rb:117:in 'Bundler.with_friendly_errors'
jekyll-1  |     from /usr/local/bundle/gems/bundler-2.6.9/exe/bundle:20:in '<top (required)>'
jekyll-1  |     from /usr/local/bundle/bin/bundle:25:in 'Kernel#load'
jekyll-1  |     from /usr/local/bundle/bin/bundle:25:in '<main>'

What operating system are you using?

Linux

Where are you seeing the problem on?

Running locally with Docker (docker compose)

More info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions