jwarc icon indicating copy to clipboard operation
jwarc copied to clipboard

Should we include a Dockerfile?

Open ibnesayeed opened this issue 6 years ago • 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?

ibnesayeed avatar Feb 19 '19 16:02 ibnesayeed

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

machawk1 avatar Feb 19 '19 16:02 machawk1

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

ato avatar Feb 19 '19 23:02 ato

@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?

ibnesayeed avatar Feb 24 '19 17:02 ibnesayeed

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.

ato avatar Feb 25 '19 00:02 ato