This is an source builder image for Hugo - a fast and modern static web site generator.
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.
- 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
Run:
$ oc new-app mfojtik/hugo~http://github.com/<org>/<hugo-repo>