Compare commits
2 commits
424379c76c
...
70afadd51e
Author | SHA1 | Date | |
---|---|---|---|
|
70afadd51e | ||
|
3875f67466 |
5 changed files with 80 additions and 10 deletions
14
Dockerfile-ubuntu-14.04
Normal file
14
Dockerfile-ubuntu-14.04
Normal 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"]
|
|
@ -1,4 +1,3 @@
|
||||||
#FROM ubuntu:14.04
|
|
||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
# Required for instaling packages
|
# Required for instaling packages
|
||||||
|
@ -7,8 +6,7 @@ USER root
|
||||||
RUN apt-get update && apt-get -y install x11vnc xvfb firefox jwm \
|
RUN apt-get update && apt-get -y install x11vnc xvfb firefox jwm \
|
||||||
icedtea-8-plugin icedtea-netx
|
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 && \
|
RUN mkdir ~/.vnc && \
|
||||||
echo "firefox &" > ~/.xinitrc && \
|
echo "firefox &" > ~/.xinitrc && \
|
18
README.md
18
README.md
|
@ -30,16 +30,34 @@ docker push ungleich/firefox-java-vnc
|
||||||
|
|
||||||
## Changelog
|
## 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
|
### 0.0.2
|
||||||
|
|
||||||
* Switched to Ubuntu 16.04 as the base image
|
* Switched to Ubuntu 16.04 as the base image
|
||||||
* Added kubernetes sample deployment
|
* Added kubernetes sample deployment
|
||||||
* Does not work with iDRAC 6
|
* 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
|
### 0.0.1
|
||||||
|
|
||||||
* Initial release based on Ubuntu 14.04
|
* Initial release based on Ubuntu 14.04
|
||||||
* Works with iDRAC 6
|
* 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
|
## Credit
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: ungleich-firefox-java-vnc
|
name: ungleich-firefox-java-vnc002
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: ungleich-firefox-java-vnc
|
app: ungleich-firefox-java-vnc002
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: ungleich-firefox-java-vnc
|
app: ungleich-firefox-java-vnc002
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: firefox
|
- name: firefox
|
||||||
image: ungleich/firefox-java-vnc:0.0.1
|
image: ungleich/firefox-java-vnc:0.0.2
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /dev/shm
|
- mountPath: /dev/shm
|
||||||
|
@ -34,13 +34,13 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: ungleich-firefox-java-vnc
|
name: ungleich-firefox-java-vnc002
|
||||||
labels:
|
labels:
|
||||||
app: ungleich-firefox-java-vnc
|
app: ungleich-firefox-java-vnc002
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 5900
|
- port: 5900
|
||||||
name: vnc
|
name: vnc
|
||||||
selector:
|
selector:
|
||||||
app: ungleich-firefox-java-vnc
|
app: ungleich-firefox-java-vnc002
|
||||||
|
|
40
job.yaml
Normal file
40
job.yaml
Normal 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
|
Loading…
Reference in a new issue