mirror of
https://github.com/BretFisher/jekyll-serve.git
synced 2026-07-22 13:53:45 -04:00
Jekyll Build Command #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mswbull on GitHub (Feb 7, 2023).
Maybe a silly question, should I be able to run the "jekyll build" command for PRD builds? I get the following error.
docker run -v $(pwd):/site bretfisher/jekyll build
'/usr/local/bundle/gems/bundler-2.4.3/lib/bundler/definition.rb:526:in
materialize': Could not find jekyll-4.3.2, minima-2.5.1, jekyll-feed-0.17.0, webrick-1.8.1, jekyll-seo-tag-2.8.0, concurrent-ruby-1.2.0, sass-embedded-1.58.0-aarch64-linux-gnu in locally installed gems (Bundler::GemNotFound) from /usr/local/bundle/gems/bundler-2.4.3/lib/bundler/definition.rb:187:inspecs'from /usr/local/bundle/gems/bundler-2.4.3/lib/bundler/definition.rb:244:in
specs_for' from /usr/local/bundle/gems/bundler-2.4.3/lib/bundler/runtime.rb:18:insetup'from /usr/local/bundle/gems/bundler-2.4.3/lib/bundler.rb:170:in
setup' from /usr/local/bundle/gems/jekyll-4.3.1/lib/jekyll/plugin_manager.rb:52:inrequire_from_bundler'from /usr/local/bundle/gems/jekyll-4.3.1/exe/jekyll:11:in
<top (required)>' from /usr/local/bundle/bin/jekyll:25:inload'from /usr/local/bundle/bin/jekyll:25:in `
Appreciate your work creating this image.
@BretFisher commented on GitHub (Feb 13, 2023):
I suspect you need to do a
bundle installfirst since you likely need to install all these ruby dependencies before building your jekyll site.If you were using this repo's image, you could:
docker run -v $(pwd):/site -it --entrypoint bash bretfisher/jekyllThen run your commands interactively:
Then your bind-mounted
_sitewill be there, built by Jekyll and your Gemfile Jekyll dependencies.If this is a business with common prod builds, then you likely need to build your own jekyll image that will run the
bundle installduring the image build with all your ruby dependencies built in, and then you canjekyll buildeasier.@BretFisher commented on GitHub (Feb 13, 2023):
I've updated the README with this answer to help others. I'll close this issue, but feel free to reopen if it wasn't the solution you were looking for.