Git Product home page Git Product logo

jekylldocker's People

Contributors

ricalo avatar

Forkers

danielasay

jekylldocker's Issues

Default command should use the most basic usage

At this moment, the default command executes the following:

jekyll liveserve --config _config.yml,_config_dev.yml

This assumes that the site has the following:

  • Hawkins plugin for Jekyll
  • _config_dev.yml file

That might not be the case, and the container shouldn't force developers to include these dependencies.

Serving the site takes too long

HtmlProofer is taking too long on some sites. I could just serve the site and then start running the tests so developers don't have to wait to start working.

Ignore HTTP error 999 from LinkedIn

HtmlProofer fails with an HTTP error 999 when checking LinkedIn URLs.

*  External link https://www.linkedin.com/in/... failed: 999 No error

HtmlProofer should ignore such errors.

Add html-proofer to the default command

Check the site with html-proofer before serving it.
I need to add the gem to the image at build time, so adding the following line to Dockerfile

RUN gem install html-proofer

The default command should do the following:

  • Install dependencies bundle install
  • Build the site jekyll build
  • Test with html-proofer htmlproofer ./_site
  • Serve the site jekyll serve --config _config.yml,_config_dev.yml

So I need to add instructions to build the site and test with html-proofer.

HtmlProofer should not make "Docker run" fail

The container runs HtmlProofer when started. However, if there are HTML errors, the container doesn't start.

This is not right.

We also should remove the --url-ignore "/feed.xml" flag.

It should report the errors and start the container, if possible.

Move all Gems out of Dockerfile

It doesn't look like a good design to have Jekyll and other gems installed at image build time. Instead, I should assume that developers specify their own dependencies in their Gemfiles.

This has been especially problematic with Jekyll plugins.

Use ENTRYPOINT instead of CMD

I'm creating an image tag just to append --force_polling to make the image work on Windows. Maybe I can get rid of that extra tag if I use an ENTRYPOINT instead of a CMD.

Move required images to Dockerfile

The script assumes that some Gems are already installed. We should make sure that those Gems are already installed at image build time with RUN statements in Dockerfile. So far we need:

  • Jekyll
  • HtmlProofer

Jekyll plugins should not (and can't) be installed at image build time.

This is in conflict with #10.

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.