Follow the build instructions here: PelkaRepo/pcgen-docker
Follow the instructions here: Running GUI’s with Docker on Mac OS X
In a terminal:
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
In another terminal:
docker run -it --rm -e DISPLAY=10.0.1.118:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/pcgen:/home/pcgen/export --name pcgen pcgen:latest
There is an problem with the data volume mount point above. The docker image stores the pcgen
code in /home/pcgen/pcgen
. So, if we mount that directory to an empty directory on the host, we are missing the pcgen
code.
In this situation, you will see the error: Error: Unable to access jarfile pcgen.jar
.
A work-around is to mount our local directory as a folder in the pcgen
directory. This works, mostly, but requires us to remember to save everything in the export
folder.
There is another (hacky) option. You download a local copy of the pcgen
code (say, to ~/pcgen
). Then you can run the local code in the docker image directly:
docker run -it --rm -e DISPLAY=10.0.1.118:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/pcgen:/home/pcgen/pcgen --name pcgen pcgen:latest