Open iharsuvorau opened 2 years ago
hi,
Split miner itself does not need a display, though there are some external libraries that are used within Split Miner that may require it by design (although they do not really need a display). With some tweaks to the code, you may be able to remove the parts of the code that call classes in those libraries (mostly called for exporting the output file), this may require some time though.
Hello, @nemo-91,
Thank you for the feedback. I also managed to run it with a dummy X server. Xvfb does the trick.
A docker file with an appropriate Java version for Split Miner and with Xvfb:
FROM openjdk:8-jre-bullseye
RUN apt update
RUN apt install -y libxrender1 libxext6 libxtst6 xvfb x11-utils
ENV DISPLAY=:99
CMD /bin/bash
Xvfb doesn't run as a server, so it should be executed together with the X server dependent command:
$ Xvfb :99 &>/dev/null & disown; any-X-server-dependent-command
Can we run SplitMiner without a display? At the moment it's impossible to execute it in Docker, having the
java.awt.HeadlessException
exception.