Skip to content

reanahub/blog.reana.io

Repository files navigation

blog.reana.io

image image image

About

REANA blog web site blog.reana.io.

Developing

Clone:

$ git clone git@github.com:reanahub/blog.reana.io.git
$ cd blog.reana.io
$ git submodule init
$ git submodule update

Run locally:

$ hugo server -DF # shows drafts and future posts
$ firefox http://localhost:1313

Create a new post:

$ hugo new posts/2021/my-new-post.md

Run on Docker (in development mode):

$ docker build -t docker.io/reanahub/blog.reana.io --build-arg HUGO_CMD='-D' .
$ docker run --rm --name reanablog -p 8080:8080 docker.io/reanahub/blog.reana.io
$ firefox http://localhost:8080

Run on Docker (in production mode):

$ docker build -t docker.io/reanahub/blog.reana.io --build-arg HUGO_CMD='--minify --gc' .
$ docker run --rm --name reanablog -p 8080:8080 docker.io/reanahub/blog.reana.io
$ firefox http://localhost:8080

Run on OKD:

$ oc new-build https://github.com/reanahub/blog.reana.io --build-arg=HUGO_CMD='--minify --gc'
$ oc new-app openshift-registry.web.cern.ch/reana-blog/blogreanaio
# create route manually via UI