Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2020-03-02 11:28:46 +0000
committerSravan Kumar Lakkimsetti2020-03-02 11:32:44 +0000
commitc98a44f8abea82057a607e3b9dab4c30569ad234 (patch)
treed219b314e288ba60f060ff3981eebb35a9c68b56 /cje-production/dockerfiles
parentf2fde1f1de58333398d74c8727a7d50a602a0184 (diff)
downloadeclipse.platform.releng.aggregator-c98a44f8abea82057a607e3b9dab4c30569ad234.tar.gz
eclipse.platform.releng.aggregator-c98a44f8abea82057a607e3b9dab4c30569ad234.tar.xz
eclipse.platform.releng.aggregator-c98a44f8abea82057a607e3b9dab4c30569ad234.zip
Bug 560632 - [JIRO] Move linux tests to use custom docker container
Added docker file for centos 7 and 8 Change-Id: Icd13c111b5915c681d9fba1cc0052ecdf6d76a02 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'cje-production/dockerfiles')
-rw-r--r--cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/Dockerfile36
-rw-r--r--cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/scripts/uid_entrypoint7
-rw-r--r--cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/scripts/xstartup_metacity.sh11
-rw-r--r--cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/scripts/xstartup_mutter.sh11
4 files changed, 65 insertions, 0 deletions
diff --git a/cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/Dockerfile b/cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/Dockerfile
new file mode 100644
index 000000000..f4c9b7df6
--- /dev/null
+++ b/cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/Dockerfile
@@ -0,0 +1,36 @@
+ARG FROM_TAG="8"
+FROM centos:${FROM_TAG}
+
+RUN yum -y update && yum -y install \
+ gtk3 \
+ tigervnc-server \
+ tigervnc \
+ metacity \
+ xorg-x11-server-utils \
+ mesa-libGL \
+ xorg-x11-fonts-misc \
+ xorg-x11-fonts-75dpi \
+ xorg-x11-fonts-Type1 \
+ xorg-x11-fonts-100dpi \
+ liberation-fonts \
+ gnu-free-fonts-common \
+ dejavu-fonts-common \
+ unzip \
+ lsof \
+ wget \
+ curl \
+ webkitgtk4 \
+ && yum clean all
+
+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/centos-gtk3-metacity/7-gtk3/scripts/uid_entrypoint b/cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/scripts/uid_entrypoint
new file mode 100644
index 000000000..608f11708
--- /dev/null
+++ b/cje-production/dockerfiles/centos-gtk3-metacity/7-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/centos-gtk3-metacity/7-gtk3/scripts/xstartup_metacity.sh b/cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/scripts/xstartup_metacity.sh
new file mode 100644
index 000000000..eef5b2c61
--- /dev/null
+++ b/cje-production/dockerfiles/centos-gtk3-metacity/7-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/centos-gtk3-metacity/7-gtk3/scripts/xstartup_mutter.sh b/cje-production/dockerfiles/centos-gtk3-metacity/7-gtk3/scripts/xstartup_mutter.sh
new file mode 100644
index 000000000..1c5858e68
--- /dev/null
+++ b/cje-production/dockerfiles/centos-gtk3-metacity/7-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