tomjoht / documentation-theme-jekyll

A Jekyll-based theme designed for documentation and help systems. See the link for detailed instructions on setting up and configuring everything.

Home Page:http://idratherbewriting.com/documentation-theme-jekyll/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to run the site in Docker

igat64 opened this issue · comments

Info: Docker Version 18.06.1-ce-mac73 (26764)

Steps:

  • clone repo: git clone git@github.com:tomjoht/documentation-theme-jekyll.git && cd documentation-theme-jekyll
  • run docker-compose build --no-cache && docker-compose up

Result:

Code/sandbox/documentation-theme-jekyll on  gh-pages on 🐳 v18.06.1-ce
•100% ➜ docker-compose build --no-cache && docker-compose up
Building server
Step 1/10 : FROM jekyll/builder
 ---> b3ed2f4111d3
Step 2/10 : WORKDIR /tmp
 ---> Running in d65e315de85b
Removing intermediate container d65e315de85b
 ---> eb7769fe603f
Step 3/10 : ADD Gemfile /tmp/
 ---> a0634787ca7a
Step 4/10 : ADD Gemfile.lock /tmp/
 ---> b79750d0ca7a
Step 5/10 : RUN bundle install
 ---> Running in 39408e1a9eed
Fetching gem metadata from https://rubygems.org/...........
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching activesupport 4.2.10
Installing activesupport 4.2.10
Fetching public_suffix 2.0.5
Installing public_suffix 2.0.5
Fetching addressable 2.5.2
Installing addressable 2.5.2
Using bundler 1.16.5
Fetching coffee-script-source 1.11.1
Installing coffee-script-source 1.11.1
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching colorator 1.1.0
Installing colorator 1.1.0
Fetching ruby-enum 0.7.2
Installing ruby-enum 0.7.2
Fetching commonmarker 0.17.13
Installing commonmarker 0.17.13 with native extensions
Fetching dnsruby 1.61.2
Installing dnsruby 1.61.2
Fetching eventmachine 1.2.7
Installing eventmachine 1.2.7 with native extensions
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching em-websocket 0.5.1
Installing em-websocket 0.5.1
Fetching ffi 1.9.25
Installing ffi 1.9.25 with native extensions
Fetching ethon 0.11.0
Installing ethon 0.11.0
Fetching multipart-post 2.0.0
Installing multipart-post 2.0.0
Fetching faraday 0.15.3
Installing faraday 0.15.3
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching gemoji 3.0.0
Installing gemoji 3.0.0
Fetching sawyer 0.8.1
Installing sawyer 0.8.1
Fetching octokit 4.12.0
Installing octokit 4.12.0
Fetching typhoeus 1.3.0
Installing typhoeus 1.3.0
Fetching github-pages-health-check 1.8.1
Installing github-pages-health-check 1.8.1
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching sass 3.6.0
Installing sass 3.6.0
Fetching jekyll-sass-converter 1.5.2
Installing jekyll-sass-converter 1.5.2
Fetching ruby_dep 1.5.0
Installing ruby_dep 1.5.0
Fetching listen 3.1.5
Installing listen 3.1.5
Fetching jekyll-watch 2.0.0
Installing jekyll-watch 2.0.0
Fetching kramdown 1.17.0
Installing kramdown 1.17.0
Fetching liquid 4.0.0
Installing liquid 4.0.0
Fetching mercenary 0.3.6
Installing mercenary 0.3.6
Fetching pathutil 0.16.1
Installing pathutil 0.16.1
Fetching rouge 2.2.1
Installing rouge 2.2.1
Fetching safe_yaml 1.0.4
Installing safe_yaml 1.0.4
Fetching jekyll 3.7.4
Installing jekyll 3.7.4
Fetching jekyll-avatar 0.6.0
Installing jekyll-avatar 0.6.0
Fetching jekyll-coffeescript 1.1.1
Installing jekyll-coffeescript 1.1.1
Fetching jekyll-commonmark 1.2.0
Installing jekyll-commonmark 1.2.0
Fetching jekyll-commonmark-ghpages 0.1.5
Installing jekyll-commonmark-ghpages 0.1.5
Fetching jekyll-default-layout 0.1.4
Installing jekyll-default-layout 0.1.4
Fetching jekyll-feed 0.10.0
Installing jekyll-feed 0.10.0
Fetching jekyll-gist 1.5.0
Installing jekyll-gist 1.5.0
Fetching jekyll-github-metadata 2.9.4
Installing jekyll-github-metadata 2.9.4
Fetching mini_portile2 2.3.0
Installing mini_portile2 2.3.0
Fetching nokogiri 1.8.4
Installing nokogiri 1.8.4 with native extensions
Fetching html-pipeline 2.8.4
Installing html-pipeline 2.8.4
Fetching jekyll-mentions 1.4.1
Installing jekyll-mentions 1.4.1
Fetching jekyll-optional-front-matter 0.3.0
Installing jekyll-optional-front-matter 0.3.0
Fetching jekyll-paginate 1.1.0
Installing jekyll-paginate 1.1.0
Fetching jekyll-readme-index 0.2.0
Installing jekyll-readme-index 0.2.0
Fetching jekyll-redirect-from 0.14.0
Installing jekyll-redirect-from 0.14.0
Fetching jekyll-relative-links 0.5.3
Installing jekyll-relative-links 0.5.3
Fetching rubyzip 1.2.2
Installing rubyzip 1.2.2
Fetching jekyll-remote-theme 0.3.1
Downloading jekyll-remote-theme-0.3.1 revealed dependencies not in the API or
the lockfile (rubyzip (< 3.0, >= 1.2.1)).
Either installing with `--full-index` or running `bundle update
jekyll-remote-theme` should fix the problem.

In Gemfile:
  github-pages was resolved to 192, which depends on
    jekyll-remote-theme
ERROR: Service 'server' failed to build: The command '/bin/sh -c bundle install' returned a non-zero code: 34

Having the exact same issue here, wainting for a genius to help us !

Found the solution : you are missing some libraries @igat64.

I ran failed commands until every one of them works :

  • docker-compose build --no-cache causes /bin/sh -c bundle install to fail
  • then /bin/sh -c bundle install told me that nogokiri package failed and that I should make sure to have sudo gem install nokogiri -v '1.8.4' --source 'https://rubygems.org/' running.
  • new error says that sudo gem install nokogiri -v '1.8.4' --source 'https://rubygems.org/' should work but it did not.
  • so I found this issue and, after reading it all, ran these 2 last commands : sudo apt-get install libpng-dev and sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev

After that, I just had to execute commands backwards and the container is now up and running 👍

Hope this helps, have fun :)

@AlexiZ all the command run inside the container; this is the purpose of Docker
It's working for me even if zlibc is not installed on my Debian

@igat64

  1. do you have special configuration/specification like in (example)
    1.1 a /etc/docker/daemon.json
    1.2 noexec for /home, /tmp, /var/lib/docker in /etc/fstab

docker-compose don't like noexec on /tmp

This looks like a Docker issue rather than a theme issue. I'm not a Docker user so my troubleshooting knowledge is limited here. I should remove mention of Docker in the docs until I can more thoroughly test and verify it, perhaps.