Projects meezaan github-pages Files
Enable build support by adding .onedev-buildspec.yml
Dockerfile Loading last commit info...
LICENSE
README.md
README.md

docker-github-pages

This repo is forked from https://github.com/madduci/docker-github-pages and basically builds both amd and arm compatible images to allow us to move from github-pages.

The image is published on meezaan/github-pages.

GitHub-Pages Docker container, powered by Alpine Linux and Jekyll installed via the github-pages gem.

To run this image (and to build your pages), you can simply run:

docker run --rm -it -p 4000:4000 -v /mysite:/site --entrypoint /bin/sh meezaan/docker-github-pages -c "jekyll serve --watch --force_polling --host 0.0.0.0"

The default image entrypoint is bundle.

Warning

By default, Jekyll will run on 127.0.0.1 (default gem configuration): this will make jekyll unreachable from outside the docker container.

To override this behaviour, just give the extra --host X.X.X.X parameter to serve the specific IP.

BEWARE

Due to recent updates to github-pages ruby gem, you need to delete your previous Gemfile.lock and let jekyll regenerate it, or it will end up in an error, adding explicitly the jekyll-watch and (if desired) the jekyll-admin dependencies.

In addition, you now need to run jekyll behind bundle, installing the required rubygems and launching the generation process.

The best solution is to derive this image and modify the build steps according to your requirements.

Please wait...
Page is in error, reload to recover