From d7be4eedc9a5decade08c51bce1f9a7476534447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Macias=20Portela?= Date: Mon, 1 Jul 2019 09:56:31 +0200 Subject: [PATCH 1/3] Update OS base to 16.04 and openjdk 8 --- Dockerfile | 15 +++++++++------ README.md | 9 +++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index fca60d0..69654ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ # VERSION 0.1 # DOCKER-VERSION 0.2 -from f69m/ubuntu32:14.04 +from f69m/ubuntu32:16.04 # make sure the package repository is up to date -run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list +run echo "deb http://archive.ubuntu.com/ubuntu xenial main universe" > /etc/apt/sources.list run apt-get update # Install vnc, xvfb in order to create a 'fake' display and firefox @@ -14,14 +14,17 @@ run apt-get install -y x11vnc xvfb openbox # Install the specific tzdata-java we need run apt-get -y install wget -run wget --no-check-certificate https://launchpad.net/ubuntu/+archive/primary/+files/tzdata-java_2016d-0ubuntu0.14.04_all.deb -run dpkg -i tzdata-java_2016d-0ubuntu0.14.04_all.deb -run apt-get install -y tzdata +run wget --no-check-certificate http://archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2019a-0ubuntu0.16.04_all.deb +run dpkg -i tzdata_2019a-0ubuntu0.16.04_all.deb # Install Firefox and Java Plugins -run apt-get install -y firefox icedtea-6-plugin icedtea-netx openjdk-6-jre openjdk-6-jre-headless tzdata-java +run apt-get install -y firefox icedtea-8-plugin icedtea-netx openjdk-8-jre openjdk-8-jre-headless run mkdir ~/.vnc +run echo "nameserver 10.95.48.36" > /etc/resolv.conf +run echo "nameserver 8.8.8.8" >> /etc/resolv.conf +run echo "domain hi.inet" >> /etc/resolv.conf + # Autostart firefox (might not be the best way to do it, but it does the trick) run bash -c 'echo "exec openbox-session &" >> ~/.xinitrc' run bash -c 'echo "firefox" >> ~/.xinitrc' diff --git a/README.md b/README.md index dfc90a4..9087e46 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -docker-firefox-java +docker-drac-java (from docker-firefox-java) ============== Firefox over Docker via VNC including the necessary Java plugins to support working with a bunch of old Java/Web based management interfaces, such as old Dell DRAC, or Brocade FC switches. This is the product of not being able to access old Dell 1950 servers using current browsers. This Docker image provides an easy way to spin up a browser with full support. @@ -10,18 +10,15 @@ How to execute: 1. Build the docker image - docker build -t="ktelep/docker-firefox-java" . + docker build -t="docker-drac-java" . 2. Start the container - docker run -p 5900:5900 ktelep/docker-firefox-java x11vnc -forever -create + docker run -tid -p 5900:5900 --name drac -v /Users/jmp/Downloads:/downloads drac-java-console x11vnc -forever -create 3. Connect to Firefox using your VNC client of choice on port 5900 -You may wish to add a -v : if you want to use Virtual Media or the like to mount ISOs for loading Operating Systems/etc. on servers. - - From 36640e290233618579b1af1eea7430977474d2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Macias=20Portela?= Date: Mon, 1 Jul 2019 12:58:43 +0200 Subject: [PATCH 2/3] Fix DNS into container --- Dockerfile | 4 ---- README.md | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 69654ee..2a526b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,10 +21,6 @@ run dpkg -i tzdata_2019a-0ubuntu0.16.04_all.deb run apt-get install -y firefox icedtea-8-plugin icedtea-netx openjdk-8-jre openjdk-8-jre-headless run mkdir ~/.vnc -run echo "nameserver 10.95.48.36" > /etc/resolv.conf -run echo "nameserver 8.8.8.8" >> /etc/resolv.conf -run echo "domain hi.inet" >> /etc/resolv.conf - # Autostart firefox (might not be the best way to do it, but it does the trick) run bash -c 'echo "exec openbox-session &" >> ~/.xinitrc' run bash -c 'echo "firefox" >> ~/.xinitrc' diff --git a/README.md b/README.md index 9087e46..fd3f73f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ How to execute: 2. Start the container - docker run -tid -p 5900:5900 --name drac -v /Users/jmp/Downloads:/downloads drac-java-console x11vnc -forever -create + docker run -tid -p 5900:5900 --dns=10.95.48.36 --dns-search=hi.inet --name drac -v /Users/jmp/Downloads:/downloads drac-java-console x11vnc -forever -create 3. Connect to Firefox using your VNC client of choice on port 5900 From 58ef6ac12d33fefdc1efd98d126a7fddda4312d6 Mon Sep 17 00:00:00 2001 From: Jesus Macias Portela Date: Mon, 22 Feb 2021 13:09:56 +0100 Subject: [PATCH 3/3] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a526b2..4af9bf2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,8 @@ run apt-get install -y x11vnc xvfb openbox # Install the specific tzdata-java we need run apt-get -y install wget -run wget --no-check-certificate http://archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2019a-0ubuntu0.16.04_all.deb -run dpkg -i tzdata_2019a-0ubuntu0.16.04_all.deb +run wget --no-check-certificate http://archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2021a-0ubuntu0.16.04_all.deb +run dpkg -i tzdata_2021a-0ubuntu0.16.04_all.deb # Install Firefox and Java Plugins run apt-get install -y firefox icedtea-8-plugin icedtea-netx openjdk-8-jre openjdk-8-jre-headless