Open kerolloz opened 4 years ago
I have just tried out this image and faced the same issue.
This seems to be a duplicate of #61
Just remove gem lock file
thanks, I'll try that, seems to make sense, based on https://stackoverflow.com/questions/56261127/is-the-gemfile-lock-file-needed-in-a-jekyll-site-hosted-with-github-pages
It moved forward, but immemorially stumbled on the next error: Could not find gem 'jekyll-feed (~> 0.12)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)
This is a freshly generated site with jekyll new
Ok, nevermind, I commented every other gem installation from the Gemfile that was not the github-pages.
I understand that actually the Gemfile is not even necessary (if I got it correctly) when running with this docker image or pushing it to github, but I wanted to have it for contributors that want to set the development environment locally without docker.
Removing the jekyll-feed gem makes sense since it is already included in the github-pages gem, but the following lines look like they may make sense for the people running it native in some platforms, and they cause conflict with this docker image:
# Windows and JRuby 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", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
running
docker run -it --rm -v "$PWD":/usr/src/app -p "4000:4000" starefossen/github-pages
results in