IOGraph icon indicating copy to clipboard operation
IOGraph copied to clipboard

Run as a Docker container

Open joonas-fi opened this issue 1 year ago • 1 comments

Hi, nice app!

If you think it's a good idea (to add to documentation or such), here's how to run this successfully in a Docker container.

The container image build side

A Dockerfile:

FROM alpine:latest

ENTRYPOINT ["java", "-jar", "/usr/bin/IOGraph.jar"]

WORKDIR /workspace

RUN apk add openjdk21-jre fontconfig font-noto \
  && wget -O /usr/bin/IOGraph.jar https://github.com/anatolyzenkov/IOGraph/releases/download/v1.0.3/IOGraph_v1_0_3.jar

Run side

docker run --rm -it -e DISPLAY -e XAUTHORITY=/Xauthority -v "$XAUTHORITY":/Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix -v "$(pwd):/workspace" iograph

joonas-fi avatar Aug 27 '24 09:08 joonas-fi

FYI: I published a package here: https://github.com/r-xs-fi/iograph

joonas-fi avatar Aug 27 '24 17:08 joonas-fi