Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-08-19 11:48:35 -0400
committerAlexander Kurtakov2019-08-19 16:50:07 -0400
commit83a218b8ce55f57078dfb9342989ab2b525caac0 (patch)
treef37981768b560eab77d486f7a02c2f579c68b9bf
parentbe9f3ff707e25f4aa304df53c2b712b9678a7772 (diff)
downloadeclipse.platform.swt-83a218b8ce55f57078dfb9342989ab2b525caac0.tar.gz
eclipse.platform.swt-83a218b8ce55f57078dfb9342989ab2b525caac0.tar.xz
eclipse.platform.swt-83a218b8ce55f57078dfb9342989ab2b525caac0.zip
Bug 549872 - [OI2JIRO] Migration of Platform JIPP to new CI
infrastructure Add Dockerfile to build swt with natives on linux. Change-Id: I8e4630593ea58afcd9d9721378cfd3bd700a7915 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--container/Dockerfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/container/Dockerfile b/container/Dockerfile
new file mode 100644
index 0000000000..fa7be5dbd8
--- /dev/null
+++ b/container/Dockerfile
@@ -0,0 +1,35 @@
+FROM eclipsecbi/fedora-gtk3-mutter:29-gtk3.24
+
+# Back to root for install
+USER 0
+
+ARG REMOTING_VERSION=3.27
+
+# https://github.com/jenkinsci/docker-jnlp-slave/
+ARG JNLP_AGENT_SCRIPT_VERSION=3.27-1
+
+RUN curl --create-dirs -sSLo /usr/share/jenkins/slave.jar https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/${REMOTING_VERSION}/remoting-${REMOTING_VERSION}.jar \
+ && chmod 755 /usr/share/jenkins \
+ && chmod 644 /usr/share/jenkins/slave.jar
+
+ADD https://raw.githubusercontent.com/jenkinsci/docker-jnlp-slave/${JNLP_AGENT_SCRIPT_VERSION}/jenkins-slave /usr/local/bin/jenkins-slave
+RUN chmod 555 /usr/local/bin/jenkins-slave && \
+ chgrp 0 /usr/local/bin/jenkins-slave && \
+ mkdir -p /home/jenkins/.jenkins && \
+ mkdir -p /home/jenkins/agent
+
+ENTRYPOINT [ "uid_entrypoint", "jenkins-slave" ]
+
+RUN dnf -y update && dnf -y install \
+ java-openjdk maven webkit2gtk3-devel \
+ make gcc mesa-libGLU-devel mesa-libGL-devel \
+ libXt-devel \
+ && dnf clean all
+
+#Back to named user
+USER 1000
+
+ENV LANG C.UTF-8
+ENV JENKINS_AGENT_WORKDIR=${HOME}/agent
+ENV JAVA_OPTS=""
+ENV JNLP_PROTOCOL_OPTS="-XshowSettings:vm -Xmx256m -Djdk.nativeCrypto=false -Dsun.zip.disableMemoryMapping=true -Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=true"

Back to the top