Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

JBake Docker Image

123 views
Skip to first unread message

Jeremie Lesage

unread,
Aug 25, 2016, 6:54:48 AM8/25/16
to JBake Users
Hi,

I made Docker Images for JBake, they are available on docker hub.

https://hub.docker.com/r/jeci/jbake-docker/

Best Regards
JL

Jonathan Bullock

unread,
Sep 13, 2016, 8:26:11 AM9/13/16
to Jeremie Lesage, JBake Users
Hi Jeremie,

Thanks for sharing the images, much appreciated.

I've not used Docker much yet, but intrigued to see how it can be used. I noticed at the end of the page you mention gitlab-ci for your own site? I'm very interested in that as I'd like to get official support for JBake added to GitLab Pages.

Jon

--
You received this message because you are subscribed to the Google Groups "JBake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbake-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeremie Lesage

unread,
Sep 14, 2016, 12:51:25 PM9/14/16
to Jonathan Bullock, JBake Users
Hi Jon,

I don't use this image in my gitlab, I need to update some dependencies so I have made a fork of jbake 2.4.0 and build it with maven directly in the Docker image

https://github.com/jeci-sarl/jbake/blob/v2.4.0.1/Dockerfile

I planned to use this docker file to build jbake 2.5.0-SNAPSHOT after each git pull.



gitlab needs to run script in shell, but it doesn't permit to override entrypoint for the moment, so I had to create image wrapper to change the entrypoint :

FROM jeci/jbake-unofficial-docker
ENTRYPOINT []


then I can create a build stage :


bake:
  stage: build
  image: jeci/jbake-unofficial-docker:ci
  variables:
    JBAKE_DATA: "/builds"
  script:
    - jbake -b
  artifacts:
    paths:
    - output/
  tags:
    - docker

gitlab automatically binds /builds has volume, I use JBAKE_DATA to change the work dir of jbake and use artifacts to copy the output files to my deploy stages.

It takes about 25 seconds to build my website.

I'll update the images  that everyone can use them with gitlab.

Jeremie


Jonathan Bullock

unread,
Nov 12, 2016, 6:52:50 AM11/12/16
to Jeremie Lesage, JBake Users
Hi Jeremie,

Am I right in thinking your using Docker to isolate away (or maybe contain is the better choice of word) the installation and execution of JBake from the local machine? Or is there some other reason?

Jon

Jeremie Lesage

unread,
Nov 13, 2016, 6:25:03 PM11/13/16
to Jonathan Bullock, JBake Users
Hi Jon,

Yes you right. It's mainly to isolate the installation. Because I run JBake on gitlab, and the gitlab server is not maintains by me. So I don't care wich java version is installed on gitlab, docker fix the problem.

Jeremie

fabien...@gmail.com

unread,
Aug 26, 2019, 3:56:45 PM8/26/19
to JBake Users
Hi,


I wanted to do the same.
As I didn't understand image from Jeremie, I build a new docker image : https://github.com/fasar/jbake-docker && https://hub.docker.com/r/fasar/jbake

I put the freemaker example as an example in : https://framagit.org/Fasar/jbake-template
This project build the static web site from sources with jbake with a docker image.

Hope it helps,
Regs,


Le lundi 14 novembre 2016 00:25:03 UTC+1, Jeremie Lesage a écrit :
Hi Jon,

Yes you right. It's mainly to isolate the installation. Because I run JBake on gitlab, and the gitlab server is not maintains by me. So I don't care wich java version is installed on gitlab, docker fix the problem.

Jeremie
On Sat, Nov 12, 2016 at 12:52 PM, Jonathan Bullock <jonbu...@gmail.com> wrote:
Hi Jeremie,

Am I right in thinking your using Docker to isolate away (or maybe contain is the better choice of word) the installation and execution of JBake from the local machine? Or is there some other reason?

Jon
To unsubscribe from this group and stop receiving emails from it, send an email to jbake...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "JBake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbake...@googlegroups.com.

Jonathan Bullock

unread,
May 9, 2021, 7:59:26 AM5/9/21
to fabien...@gmail.com, JBake Users
As a follow up to this thread, we'll be publishing an official Docker image very soon:


Thanks,
Jon

To unsubscribe from this group and stop receiving emails from it, send an email to jbake-user+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jbake-user/4f889af2-dd25-4498-ae8e-4602b635428c%40googlegroups.com.

Jeremie Lesage

unread,
May 10, 2021, 4:54:15 PM5/10/21
to Jonathan Bullock, fabien...@gmail.com, JBake Users
Hi Jon,

Great news.
I proposed little changes on a pull request. https://github.com/jonbullock/jbake/pull/1
It's not very important but the build can be faster in some situations.

Thanks,
Jeremie




Jonathan Bullock

unread,
May 11, 2021, 6:51:59 PM5/11/21
to Jeremie Lesage, fabien...@gmail.com, JBake Users
Hi Jeremie,

Very much appreciated!

Thanks,
Jon
Reply all
Reply to author
Forward
0 new messages