diff options
author | Rob Austein <sra@hactrn.net> | 2019-09-18 05:59:11 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2019-09-18 05:59:11 +0000 |
commit | 32f1a52abd42fd1d373d1702335ca8ed01c659e3 (patch) | |
tree | 00209a382b5405968c43549f58ae567a2158a97d /Dockerfile | |
parent | 4df0a00778da92d2fa62c00b0729339aea74ca29 (diff) |
Downgrade to an ancient and vulnerable version of Java.
If you were to suspect that we have gone down the rabbit hole of
downgrading to support a very specific horribly broken server, you
would be right. If there's a bad idea from the dustbin of web history
that this vendor didn't incorporate, I haven't found it yet:
* Requires Java applets for completely stupid reasons;
* Said Java applets crash unless you use an obsolete version of Java;
* You have to enable Flash (with automatic activation!) just to log in;
* And you can't even get that far until you downgrade TLS, because the
idiots botched their implementation of that too.
The hardware's OK, but the software should be nuked from orbit.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -2,7 +2,7 @@ FROM debian:buster -COPY waterfox*.tar.bz2 jre-*.tar.gz /root/ +COPY waterfox*.tar.bz2 jre-*.bin /root/ RUN sed -i '/ buster main/s/ main/ main contrib non-free/' /etc/apt/sources.list @@ -24,18 +24,21 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \ zile RUN set -x; \ + tar -C /usr/local -xf /root/waterfox*.tar.bz2 && \ + rm -f /root/waterfox*.tar.bz2 && \ + ln -s /usr/local/waterfox/waterfox /usr/local/bin + +RUN set -x; \ mkdir -p /usr/local/java && \ - tar -C /usr/local -xf /root/waterfox*.tar.bz2 && \ - rm -f /root/waterfox*.tar.bz2 && \ - tar -C /usr/local/java -xf /root/jre-*.tar.gz && \ - rm -f /root/jre-*.tar.gz && \ + cd /usr/local/java && \ + /root/jre-*.bin && \ echo >>/etc/profile export JRE_HOME=`echo /usr/local/java/jre*` && \ echo >>/etc/profile export 'PATH="$PATH:$JRE_HOME/bin"' && \ update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \ update-alternatives --set java /usr/local/java/jre*/bin/java && \ update-alternatives --install /usr/bin/javaws javaws /usr/local/java/jre*/bin/javaws 1 && \ update-alternatives --set javaws /usr/local/java/jre*/bin/javaws && \ - ln -s /usr/local/waterfox/waterfox /usr/local/bin + rm -f /root/jre-*.bin COPY startup.sh handlers.json /root/ COPY icewm.menu /root/.icewm/menu |