Giter VIP home page Giter VIP logo

github-pages-docker's Introduction

github-pages-docker

Tracks https://pages.github.com/versions/ to provide the same version as Github Pages in production.

Triggered by any change in that page, checked at 48-hour intervals by an OnWebChange tracker.

Usage

  docker run -it -v $(pwd):/app -p 4000:4000 morendil/github-pages

github-pages-docker's People

Contributors

morendil avatar

Watchers

 avatar James Cloos avatar  avatar

github-pages-docker's Issues

jekyll: command not found

From @maukoquiroga:

docker run -it -v $(pwd):/app -p 4000:4000 morendil/github-pages
ruby-2.1.7 - #gemset created /usr/local/rvm/gems/[email protected]
ruby-2.1.7 - #generating beta.gouv.fr wrappers..........
/bin/bash: jekyll: command not found

Errors for files named app* in site root directory

Issue

When a file with a filename starting with app is placed in the site's root directory, Jekyll is unable to generate the site and returns an error.

Steps to reproduce

  1. Start a container using the image morendil/github-pages:latest
  2. Place or create a file with a filename that starts with app in the same directory where _config.yml is. For example:
    • apple-touch-icon.png
    • app.md

Expected result

Site should be generated with files moved to the _site directory

What happens

Jekyll returns an error:

Regenerating: 1 file(s) changed at 2016-09-14 21:22:49 ...error:
       Error: No such file or directory @ rb_sysopen - /apple-touch-icon.png
       Error: Run jekyll build --trace for more information.

Running jekyll build --trace returns:

Configuration file: /app/_config.yml                                                                                                                                               
            Source: /app                                                                                                                                                           
       Destination: /app/_site                                                                                                                                                     
 Incremental build: disabled. Enable with --incremental                                                                                                                            
      Generating...                                                                                                                                                                
/usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/utils.rb:139:in `initialize': No such file or directory @ rb_sysopen - /apple-touch-icon.png (Errno::ENOENT)    
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/utils.rb:139:in `open'                                                                             
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/utils.rb:139:in `has_yaml_header?'                                                                 
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/reader.rb:44:in `block in read_directories'                                                        
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/reader.rb:43:in `select'                                                                           
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/reader.rb:43:in `read_directories'                                                                 
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/reader.rb:17:in `read'                                                                             
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/site.rb:163:in `read'                                                                              
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/site.rb:67:in `process'                                                                            
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/command.rb:26:in `process_site'                                                                    
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/commands/build.rb:63:in `build'                                                                    
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/commands/build.rb:34:in `process'                                                                  
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/lib/jekyll/commands/build.rb:16:in `block (2 levels) in init_with_program'                                    
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `call'                                                                     
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'                                                         
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'                                                                     
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'                                                                  
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'                                                                        
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'                                                                           
        from /usr/local/rvm/gems/ruby-2.1.7@global/gems/jekyll-3.2.1/exe/jekyll:13:in `<top (required)>'                                                                           
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/jekyll:23:in `load'                                                                                                         
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/jekyll:23:in `<main>'                                                                                                       
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/ruby_executable_hooks:15:in `eval'                                                                                          
        from /usr/local/rvm/gems/ruby-2.1.7@global/bin/ruby_executable_hooks:15:in `<main>'

Possible solution

Changing the environment variable APP_HOME in the Dockerfile to /usr/src/app and building a new Docker image got me a working container.

I verified that it wasn't an updated gem that got it working by also building a docker with the latest gem dependencies with APP_HOMEstill being /app

Versions

Error occurs using morendil/github-pages:latest with the Jekyll 3.2.1 and github-pages (94) on a Synology DS713+. Ruby is ruby 2.1.7p400 (2015-08-18 revision 51632) [x86_64-linux]

Charactère US-ASCII "\xE2" invalide dans style.scss

J'ai une erreur quand je lance docker selon les instructions du README:

$ docker runit -v $(pwd):/app -p 4000:4000 morendil/github-page
[...]
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/style.scss':
                    Invalid US-ASCII character "\xE2" on line 5
jekyll 3.6.2 | Error:  Invalid US-ASCII character "\xE2" on line 5

Je n'ai trouvé ni fichier style.scss ni charactère non ASCII dans le style.css :

grep --color='auto' -P -n "[\x80-\xFF]" _site/assets/css/style.css

J'ai trouvé cette entrée qui en parle : jekyll/jekyll#4268

Mais j'ai vérifié que jekyll-sass-converter est en version 1.5.0 (il y avait un bug en 1.3.0) et que mes locales utf8 sont bien présentes :

$ locale -a
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
fr_FR.utf8
POSIX

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.