Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2020-05-14 11:43:46 +0000
committerSravan Kumar Lakkimsetti2020-05-14 11:43:46 +0000
commit2e97f2a9fba047fc523ce36a98f7a543eb0cc2b3 (patch)
treedd238224f3c1f4b894cd55294ab6066e9f5b4d1c
parentadeca2f3a45a1ea3ff6b61ad420710ede14c5f44 (diff)
downloadeclipse.platform.releng.aggregator-2e97f2a9fba047fc523ce36a98f7a543eb0cc2b3.tar.gz
eclipse.platform.releng.aggregator-2e97f2a9fba047fc523ce36a98f7a543eb0cc2b3.tar.xz
eclipse.platform.releng.aggregator-2e97f2a9fba047fc523ce36a98f7a543eb0cc2b3.zip
Add Opensuse leap 15.x image
Change-Id: I1c76dc59a06e2c989f2a6232fc1169ef2da785a9 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/Dockerfile38
-rw-r--r--cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/uid_entrypoint7
-rw-r--r--cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_metacity.sh11
-rw-r--r--cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_mutter.sh11
4 files changed, 67 insertions, 0 deletions
diff --git a/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/Dockerfile b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/Dockerfile
new file mode 100644
index 000000000..223a31d5a
--- /dev/null
+++ b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/Dockerfile
@@ -0,0 +1,38 @@
+FROM opensuse/leap:15
+
+### 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 \
+ webkit2gtk3
+
+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
+RUN chmod 755 ${HOME}/.vnc/xstartup.sh
+
+USER 10001
diff --git a/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/uid_entrypoint b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/uid_entrypoint
new file mode 100644
index 000000000..608f11708
--- /dev/null
+++ b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/uid_entrypoint
@@ -0,0 +1,7 @@
+#!/usr/bin/env sh
+if ! whoami &> /dev/null; then
+ if [ -w /etc/passwd ]; then
+ echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:${HOME}:/sbin/nologin" >> /etc/passwd
+ fi
+fi
+exec "$@" \ No newline at end of file
diff --git a/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_metacity.sh b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_metacity.sh
new file mode 100644
index 000000000..eef5b2c61
--- /dev/null
+++ b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_metacity.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env /bin/sh
+
+[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
+[ -r ${HOME}/.Xresources ] && xrdb ${HOME}/.Xresources
+
+Xvnc ${DISPLAY} -geometry 1440x900 -depth 16 -dpi 100 -PasswordFile ${HOME}/.vnc/passwd &
+sleep 2
+xsetroot -solid grey
+vncconfig -iconic &
+xhost +
+metacity --replace --sm-disable --display=${DISPLAY} & \ No newline at end of file
diff --git a/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_mutter.sh b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_mutter.sh
new file mode 100644
index 000000000..1c5858e68
--- /dev/null
+++ b/cje-production/dockerfiles/opensuse-gtk3-metacity/15-gtk3/scripts/xstartup_mutter.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env /bin/sh
+
+[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
+[ -r ${HOME}/.Xresources ] && xrdb ${HOME}/.Xresources
+
+Xvnc ${DISPLAY} -geometry 1440x900 -depth 16 -dpi 100 -PasswordFile ${HOME}/.vnc/passwd &
+sleep 2
+xsetroot -solid grey
+vncconfig -iconic &
+xhost +
+mutter --replace --sm-disable --display=${DISPLAY} & \ No newline at end of file

Back to the top