This repository contains the source for building static websites using Jekyll that will be served with nginx 1.8 for a reproducible Docker image using source-to-image. The resulting image can be run using Docker or preferably hosted in OpenShift.
For more information about using these images with OpenShift, please see the official OpenShift Documentation.
Ruby versions currently provided are:
- ruby-2.2
nginx versions currently provided are:
- nginx-1.8
CentOS versions currently supported are:
- CentOS7
To build the Jekyll Builder Ruby image:
-
CentOS based image
This image is available on DockerHub. To download it run:
$ docker pull mrjoshuap/s2i-jekyll-nginx-18-centos7
To build this image from scratch run:
$ git clone https://github.com/mrjoshuap/s2i-jekyll-nginx-18-centos7.git $ cd s2i-jekyll-nginx-18-centos7 $ make
To build a Jekyll application image:
-
install S2I from https://github.com/openshift/source-to-image
-
perform a source to image build on your Jekyll site source
# s2i build git://<source code> jekyll-nginx-18-centos7 <application image>
- run the resulting application image
# docker run -p 8080:8080 <application image>