Initial commit - break a leg.

This commit is contained in:
Nico Schottelius 2022-08-20 17:29:07 +02:00
commit 40d2ebf4b1
2 changed files with 50 additions and 0 deletions

16
Dockerfile Normal file
View file

@ -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"]

34
README.md Normal file
View file

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