Skip to content

wechris/docker-jekyll-github-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Docker image for Github's Jekyll

A Jekyll Docker image to build and view github-pages on my MacOS X. :whale:

Blogpost 'Docker Container for Github’s Jekyll'

Introduction

Build and run your Jekyll github-pages in a Docker container.

Checkout the project and build the Docker image:

docker build -t "wechris-jekyll" .

Checkout the Repo of your github-page to a subfolder and copy the Gemfile into the folder. Run the Docker Jekyll image:

docker run -v $(pwd)/<path github-page-repo>:/home/mypage -w /home/mypage -p 4000:4000 wechris-jekyll bundle exec jekyll serve --host 0.0.0.0

If you want to run the Jekyll container with an interactive shell

docker run -it -v $(pwd)/<path github-page-repo>:/home/mypage -w /home/mypage -p 4000:4000 wechris-jekyll /bin/sh

Whenever you commit to the repository, GitHub Pages will run Jekyll to rebuild the pages in your site, from the content in your Markdown files.

Docker

Releases

No releases published

Packages

No packages published