docker-jekyll-git

docker-jekyll-git

A Docker image to compile jekyll pages form a git repo

Docker: Jekyll w/ Git

A Docker image that is able to compile jekyll pages stored in Git repositories at, e.g., GitHub.

What it does

The Dockerfile compiles into a Docker image that is based on my other Docker image binfalse/jekyll (source). It basically consists of a Debian image plus

In addition, it has a volume /jekyll configured, where your jekyll porject should be mounted.

When run, the container executes the script jekyll-update, which checks whether the git repository inside the jekyll project is up-to-date (it tries to git-fetch new commits, so make sure you configured an origin with an HTTP(S) URL). In case of updates on the remote repository, the container will integrate new commits and run

jekull build

to rebuild the website.

Let's assume your Jekyll/Git project is located in /path/to/project. Then you just need to mount that path to /jekyll and run a container as follows:

docker run --rm -v /path/to/project:/jekyll binfalse/jekyll-git

In case of questions and doubts just contact me.. :)

LICENSE

Docker Image for Jekyll+Git
Copyright (C) 2009-2017 Martin Scharm <https://binfalse.de/contact/>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer