Skip to content

Latest commit

 

History

History

build-s2i-jekyll

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

S2I Image for Building Jekyll Sites

This image builds sites using Jekyll.

Requirements

This example is using the OpenShift Applier to build and deploy Jekyll. As a result you'll need to have ansible installed.

OpenShift objects

The openshift-applier will create the following OpenShift objects:

Quickstart

  1. Clone this repository: git clone https://github.com/redhat-cop/containers-quickstarts
  2. cd containers-quickstarts/build-s2i-jekyll
  3. Run ansible-galaxy install -r requirements.yml --roles-path=roles
  4. Login to Openshift: oc login -u <username> https://master.example.com:8443
  5. Run openshift-applier: ansible-playbook -i .applier/hosts roles/openshift-applier/playbooks/openshift-cluster-seed.yml

Now we can oc get routes to get the hostname of the route that was just created, or click the link in the OpenShift Web Console, and test our newly published jekyll site.

NOTE: This image is not intended to be used to serve the content provided by jekyll. It can do so, but is meant for testing purposes only. For hosting the html site produced by this image, consider using the s2i-httpd image, or for someting even more light weight, check out our Go Web Server.