This is used for testing github.io and other Jekyll sites in Docker container quickly. CentOS 7 base image is used for this container, and follow as close to official install and basic usage guides as possible.
Just attach the source folder to the docker run command as appropriate. The source folder will then be generated into ./_site, and any new changes to the source folder will be regenerated automatically.
- INPUTDIR : Source folder (Default: /opt)
- /opt
sudo docker build -t uqwhsu/jekyll --rm=true --force-rm=true .
sudo docker run --detach \
--hostname jekyll.example.com \
--publish 80:80 \
--name jekyll \
-e INPUTDIR=/opt \
--volume /srv/jekyll/github.io:/opt \
uqwhsu/jekyll
After starting the container you can visit http://localhost/ or http://192.168.59.103 if you use boot2docker.
Please see Jekyll project page: Jekyll