Compare commits

..

2 commits

Author SHA1 Message Date
Nico Schottelius
70afadd51e Add ilo3 note 2022-08-24 18:34:38 +02:00
Nico Schottelius
3875f67466 Update 0.0.3: add support for HPE ilo3 on Ubuntu 16.04 2022-08-24 18:34:04 +02:00
5 changed files with 80 additions and 10 deletions

14
Dockerfile-ubuntu-14.04 Normal file
View file

@ -0,0 +1,14 @@
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"]

View file

@ -1,4 +1,3 @@
#FROM ubuntu:14.04
FROM ubuntu:16.04
# Required for instaling packages
@ -7,8 +6,7 @@ USER root
RUN apt-get update && apt-get -y install x11vnc xvfb firefox jwm \
icedtea-8-plugin icedtea-netx
#&& update-alternatives --set javaws /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws
RUN echo "jdk.tls.disabledAlgorithms=TLSv1.1, TLSv1.2" >> /etc/java-8-openjdk/security/java.security
RUN mkdir ~/.vnc && \
echo "firefox &" > ~/.xinitrc && \

View file

@ -30,16 +30,34 @@ docker push ungleich/firefox-java-vnc
## Changelog
### 0.0.3
* Updated version of Ubuntu 16.04
* docker build -t ungleich/firefox-java-vnc:0.0.3 -f Dockerfile-ubuntu-16.04 .
* docker push ungleich/firefox-java-vnc:0.0.3
* Contains the java.security patch noted in 0.0.2
* Added k8s job definition for testing
* ilo3 remote console opens, but shows a grey box
### 0.0.2
* Switched to Ubuntu 16.04 as the base image
* Added kubernetes sample deployment
* Does not work with iDRAC 6
* Error with HPE ilo3:
* Caused by: net.sourceforge.jnlp.LaunchException: Fatal:
Initialization Error: Unknown Main-Class. Could not determine the
main class for this application.
* Can be fixed using echo "jdk.tls.disabledAlgorithms=TLSv1.1,
TLSv1.2" >> /etc/java-8-openjdk/security/java.security
* Hint found on https://github.com/niclan/Javafox/issues/12
### 0.0.1
* Initial release based on Ubuntu 14.04
* Works with iDRAC 6
* Error with HPE ilo3:
* Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.
## Credit

View file

@ -1,20 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ungleich-firefox-java-vnc
name: ungleich-firefox-java-vnc002
spec:
selector:
matchLabels:
app: ungleich-firefox-java-vnc
app: ungleich-firefox-java-vnc002
replicas: 1
template:
metadata:
labels:
app: ungleich-firefox-java-vnc
app: ungleich-firefox-java-vnc002
spec:
containers:
- name: firefox
image: ungleich/firefox-java-vnc:0.0.1
image: ungleich/firefox-java-vnc:0.0.2
imagePullPolicy: Always
volumeMounts:
- mountPath: /dev/shm
@ -34,13 +34,13 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: ungleich-firefox-java-vnc
name: ungleich-firefox-java-vnc002
labels:
app: ungleich-firefox-java-vnc
app: ungleich-firefox-java-vnc002
spec:
type: ClusterIP
ports:
- port: 5900
name: vnc
selector:
app: ungleich-firefox-java-vnc
app: ungleich-firefox-java-vnc002

40
job.yaml Normal file
View file

@ -0,0 +1,40 @@
apiVersion: batch/v1
kind: Job
metadata:
name: ungleich-firefox-java-vnc
spec:
template:
spec:
restartPolicy: Never
containers:
- name: firefox
image: ungleich/firefox-java-vnc:0.0.1
imagePullPolicy: Always
volumeMounts:
- mountPath: /dev/shm
name: cache-volume
securityContext:
privileged: true
capabilities:
add: ["SYS_ADMIN" ]
volumes:
- emptyDir:
medium: Memory
sizeLimit: 2Gi
name: cache-volume
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: ungleich-firefox-java-vnc2
# labels:
# app: ungleich-firefox-java-vnc2
# spec:
# type: ClusterIP
# ports:
# - port: 5900
# name: vnc
# selector:
# app: ungleich-firefox-java-vnc2