iipc/jwarc

Should we include a Dockerfile?

Opened this issue · 4 comments

I am wondering, will it be helpful to add a Dockerfile in the repo that includes Chromium/Google Chrome and other run-time requirements to make all the tools function as expected?

Squidwarc's Dockerfile might be useful here as a loose basis for including Chromium.

ato commented

Sure. I don't use docker much myself so happy to take your advice on that.

@ato can you list/describe all the stuff needed (i.e., dependencies and requirements) to put it together? If you were to set it up on a bare bone Ubuntu machine (for example), what would be the steps needed to put everything together? Roughly speaking, we will need some version of JRE, Chromium/Google Chrome, some specific environments variables and any other considerations?

ato commented

At compile time: openjdk-8-jdk, maven.
At runtime: openjdk-8-jre, chromium/chrome.

Java 11 should also be fine, whichever is available.

Set env var BROWSER to the chromium/chrome executable. It may also be good to cap the java heap size by running it like like this:

java -Xmx128m -jar jwarc.jar <args>

Otherwise Java defaults to a percentage of the system's total RAM which can be unreasonably high on a large memory system.