JBake Docker

 Github
GitHub

GitHub license

Unofficial Docker Image for JBake.

Quick Start

docker run --rm -it --net=host quay.io/jeci/jbake-docker:2.6

Bake your own

First init jbake

mkdir jbake_sample
docker run --rm -v "$PWD/jbake_sample:/data" -t quay.io/jeci/jbake-docker:2.6 -i

Bake

Make your changes in jbake_sample then build :

docker run --rm -v "$PWD/jbake_sample:/data" -t quay.io/jeci/jbake-docker:2.6 -b
ls jbake_sample/output

Preview

Test with embedded jetty and go to http://localhost:8820/

docker run --rm -v "$PWD/jbake_sample:/data" --net=host -it quay.io/jeci/jbake-docker:2.6 -s

Deploy

Finaly deploy to your own server with simple rsync.

rsync -az jbake_sample/output/ example.org:/var/www/html/

Faster

Without parameters, run docker with jbake -b -s, then on your own project do :

cd www.example.org
docker run -v "$PWD:/data" --net=host --name=jbake --rm -it quay.io/jeci/jbake-docker:2.6

If you often build / test, start server in detach mode.

cd www.example.org
docker run -v "$PWD:/data" --net=host --name=jbake -dt quay.io/jeci/jbake-docker:2.6

// work
docker run -v "$PWD:/data" --rm -it quay.io/jeci/jbake-docker:2.6 -b
// work more
docker run -v "$PWD:/data" --rm -it quay.io/jeci/jbake-docker:2.6 -b

// ending
docker stop jbake
docker rm jbake

Of course this can be integrated inside your usual CICD. We use Gitlab-CI to build and deploy the website automatically.

A propos de JECI

Maintenance Logicielle, Conteneur (Docker, Kubernetes), Alfresco Community, Logiciels Libres
SARL - Capital : 100 000 €, immatriculée au RCS de Dijon

Nous contacter

+33 9 72 38 21 92 info@jeci.fr

2013-2020 Jeci | Mixed with v4.3.2 | Baked with JBake v2.6.4 | Photo by StartupStockPhotos on Unsplash | Mentions légales