-
Notifications
You must be signed in to change notification settings - Fork 72
/
Dockerfile
40 lines (34 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM opensuse/leap:15@sha256:97f06e79bb00c7329fe5838b076702f583a758a7e2f961d165df63bae3b5a420
### user name recognition at runtime w/ an arbitrary uid - for OpenShift deployments
COPY scripts/uid_entrypoint /usr/local/bin/uid_entrypoint
RUN chmod u+x /usr/local/bin/uid_entrypoint && \
chgrp 0 /usr/local/bin/uid_entrypoint && \
chmod g=u /usr/local/bin/uid_entrypoint /etc/passwd
ENTRYPOINT [ "uid_entrypoint" ]
RUN zypper --non-interactive update && zypper --non-interactive install \
libgtk-3-0 \
xorg-x11-Xvnc \
tigervnc \
metacity \
xorg-x11-fonts \
dejavu-fonts \
liberation-fonts \
Mesa-libGL1 \
Mesa-libEGL1 \
Mesa-dri \
wget \
curl \
unzip \
vim \
tar \
gzip
ENV HOME=/home/vnc
ENV DISPLAY :0
RUN mkdir -p ${HOME}/.vnc && chmod -R 775 ${HOME} \
&& echo "123456" | vncpasswd -f > ${HOME}/.vnc/passwd \
&& chmod 600 ${HOME}/.vnc/passwd
# Create a custom vnc xstartup file
COPY scripts/xstartup_metacity.sh ${HOME}/.vnc/xstartup.sh
# Make $HOME open to the 'root' group (so Jenkins/OpenShift user can write there)
RUN chgrp -R 0 ${HOME} && chmod -R g=u ${HOME}
USER 10001