/hugo-s2i

Primary LanguageShell

sti-hugo

This is an source builder image for Hugo - a fast and modern static web site generator.

What is "source builder"?

This image is compatible with the Source-to-Image project used by OpenShift Origin. This allows to build the Hugo website, to verify there is no typo in configuration and then run the final blog using Hugo web server.

How it works?

  • Create new Github repository and push your Hugo site to this repo
  • Install s2i tool (see the link above)
  • Build: $ s2i build https://github.com/<org>/<hugo-repo> mfojtik/hugo hugo-blog
  • Run: $ docker run hugo-blog

How to use it with OpenShift?

Run:

$ oc new-app mfojtik/hugo~http://github.com/<org>/<hugo-repo>