commit 40d2ebf4b12f79046c4cd1af1357ee8826972967 Author: Nico Schottelius Date: Sat Aug 20 17:29:07 2022 +0200 Initial commit - break a leg. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bce45f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +#FROM cmaohuang/firefox-java:latest +FROM ubuntu:14.04 + +# Required for instaling packages +USER root + +RUN apt-get update && apt-get -y install x11vnc xvfb firefox jwm \ + iceweasel openjdk-6-jre tzdata-java icedtea-6-plugin icedtea-netx \ + && update-alternatives --set javaws /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws + + +RUN mkdir ~/.vnc && \ + echo "firefox &" > ~/.xinitrc && \ + echo "exec jwm" >> ~/.xinitrc && \ + chmod 755 ~/.xinitrc +ENTRYPOINT ["/usr/bin/x11vnc", "-forever", "-create"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..633db40 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +## Firefox + VNC + Java + +This image allows you to run an ancient firefox with Java. It is +exposed via VNC on port 5900. + +## Usage + +Start the container: + +``` +docker run -p 5900:5900 -ti ungleich/firefox-java-vnc:latest +``` + +Use VNC to connect to it: + +``` +vncviewer localhost +``` + +(replace localhost with wherever you have the container running) + +## Credit + +Based on the following repos/work: + +* https://github.com/mablanco/docker-firefox-java-vnc/ +* https://hub.docker.com/r/cmaohuang/firefox-java + +## Usage + +``` +docker run -e DISPLAY=$DISPLAY -p 5900:5900 \ +ungleich/firefox-java-vnc:latest +```