mvidalgarcia / blog.reana.io

REANA Blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blog.reana.io

CI Actions Status Gitter License

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 -D  # shows drafts
$ firefox http://localhost:1313

Create a new post

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

Run on Docker

Dev mode

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

Production mode

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

Openshift

$ 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

About

REANA Blog

License:MIT License


Languages

Language:HTML 59.7%Language:CSS 33.2%Language:Shell 5.5%Language:Dockerfile 1.6%