Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jdigger/docker-jbake

Docker image for using jbake
https://github.com/jdigger/docker-jbake

Last synced: 30 days ago
JSON representation

Docker image for using jbake

Awesome Lists containing this project

README

        

= docker-jbake

Docker enabled JBake based blogging

== How to use

- Create a local blog directory (e.g. +Documents/Blog/input+ and +Documents/Blog/output+).

- Initialize the blog input directory (w/ thymeleaf templating in this example):
+
[source,bash]
----
docker run -t -i --rm -v ~/Documents/Blog:/mnt/blog jbake bash -c 'cd /mnt/blog/input && /opt/jbake/bin/jbake --i thymeleaf'
----

- Make you modifications to the input (content, templates etc).

- Bake your blog with JBake:
+
[source,bash]
----
docker run -t -i --rm -v ~/Documents/Blog:/mnt/blog jbake /opt/jbake/bin/jbake /mnt/blog/input /mnt/blog/output
----

- Enjoy your blog in the blog output directory.