Docker / Jekyll:无法加载EventMachine C

时间:2018-11-25 11:39:58

标签: docker jekyll

我在Docker Hub上使用了公共的Jekyll映像: https://github.com/envygeeks/jekyll-docker/blob/master/README.md

我不确定它们是否在那里进行了任何更改,但是我曾经通过docker-compose up在我的本地计算机上启动Jekyll

作者还删除了有关如何通过docker-compose设置Jekyll的描述。我总是收到此错误文本。你知道我为什么会收到这个错误吗?

site_1_d292e8701647 | ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux-musl]
site_1_d292e8701647 | Configuration file: /srv/jekyll/_config.yml
site_1_d292e8701647 |             Source: /srv/jekyll
site_1_d292e8701647 |        Destination: /srv/jekyll/_site
site_1_d292e8701647 |  Incremental build: disabled. Enable with --incremental
site_1_d292e8701647 |       Generating...
site_1_d292e8701647 |                     done in 21.714 seconds.
site_1_d292e8701647 |  Auto-regeneration: enabled for '/srv/jekyll'
site_1_d292e8701647 | Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
site_1_d292e8701647 | /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:8:in `require': Error loading shared library libssl.so.44: No such file or directory (needed by /usr/local/bundle/gems/eventmachine-1.2.7/lib/rubyeventmachine.so) - /usr/local/bundle/gems/eventmachine-1.2.7/lib/rubyeventmachine.so (LoadError)
site_1_d292e8701647 |   from /usr/local/bundle/gems/eventmachine-1.2.7/lib/eventmachine.rb:8:in `<top (required)>'
site_1_d292e8701647 |   from /usr/local/bundle/gems/em-websocket-0.5.1/lib/em-websocket.rb:3:in `require'
site_1_d292e8701647 |   from /usr/local/bundle/gems/em-websocket-0.5.1/lib/em-websocket.rb:3:in `<top (required)>'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve/live_reload_reactor.rb:3:in `require'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve/live_reload_reactor.rb:3:in `<top (required)>'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb:147:in `require_relative'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb:147:in `register_reload_hooks'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb:101:in `process'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb:93:in `block in start'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb:93:in `each'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb:93:in `start'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
site_1_d292e8701647 |   from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
site_1_d292e8701647 |   from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
site_1_d292e8701647 |   from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
site_1_d292e8701647 |   from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
site_1_d292e8701647 |   from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
site_1_d292e8701647 |   from /usr/local/bundle/gems/jekyll-3.8.4/exe/jekyll:15:in `<top (required)>'
site_1_d292e8701647 |   from /usr/local/bundle/bin/jekyll:29:in `load'
site_1_d292e8701647 |   from /usr/local/bundle/bin/jekyll:29:in `<main>'
weszits-at_site_1_d292e8701647 exited with code 1

我的docker-compose:

version: "3"
services:
  site:
    command: jekyll serve --livereload
    image: jekyll/jekyll:latest
    volumes:
      - $PWD:/srv/jekyll
      - $PWD/vendor/bundle:/usr/local/bundle
    ports:
      - 4000:4000
      - 35729:35729
      - 3000:3000
      -   80:4000

还有指向GitHub上历史记录文件的链接,其中描述仍然存在:https://github.com/envygeeks/jekyll-docker/commit/18197ac8cb491b5cc3cf284105f42bed371a7ef6#diff-04c6e90faac2675aa89e2176d2eec7d8

0 个答案:

没有答案