-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Bundles are not installed in /vendor/bundle
, cannot launch server offline
#348
Comments
I managed to make it (kind of?) retain it's gems, by using Still, I think there should be some easier way to do that, and the image should be updated. My current Gemfile is Gemfilesource "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.3.1"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5.1"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
# gem "jekyll-feed", "~> 0.17.1"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
gem "tzinfo", "~> 2.0.5"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When starting a
jekyll/jekyll:4.0
(and4.2.2
) with volume./vendor/bundle:/usr/local/bundle:Z
, installed gems don't cache locally. They install into/usr/gem
, so starting jekyll server without internet access is impossible.I tried attaching to container and doing any combination of
bundle cache
,bundle package
,bundle update
,bundle install
,bundle install --deployment
, but nothing populates thevendor/bundle
...Here is my docker-compose.yml:
The text was updated successfully, but these errors were encountered: