FROM debian:jessie
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
-RUN apt-get install -y openjdk-7-jre-headless wget git
+RUN apt-get install -y wget git
RUN useradd -d /jenkins -m -s /bin/bash -u 12001 -U jenkins
COPY start.sh /jenkins
RUN apt-get install -y mysql-server mysql-client postgresql-9.4 postgresql-client-9.4 apache2 libapache2-mod-php5 php5-mcrypt php5-mysql php5-pgsql phpunit
+RUN echo deb http://ftp.de.debian.org/debian jessie-backports main contrib >>/etc/apt/sources.list ; apt-get update ; apt-get install -y -t jessie-backports openjdk-8-jre-headless
CMD /bin/bash
wget $1/jnlpJars/slave.jar
chmod 644 slave.jar
-su jenkins -c "nice java -jar slave.jar"
+su jenkins -c "nice java -jar slave.jar -jnlpUrl $1/computer/$2/slave-agent.jnlp -jnlpCredentials $3"
wget $1/jnlpJars/slave.jar
chmod 644 slave.jar
-su jenkins -c "nice java -jar slave.jar"
+su jenkins -c "nice java -jar slave.jar -jnlpUrl $1/computer/$2/slave-agent.jnlp -jnlpCredentials $3"
FROM debian:jessie
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
-RUN apt-get install -y openjdk-7-jre-headless wget git
+RUN apt-get install -y wget git
RUN useradd -d /jenkins -m -s /bin/bash -u 12001 -U jenkins
COPY start.sh /jenkins
RUN apt-get install -y libfontconfig1 libfreetype6 libx11-6 libxext6 libxfixes3 libxi6 libsm6 libice6 libdbus-1-3 libxrender1 libxcb1 libx11-xcb1 libxcb-glx0 libglib2.0-0 libstdc++6 zlib1g-dev libgcc1 libpcre3 libegl1-mesa libgl1-mesa-glx libgl1-mesa-dev libuuid1 libxau6 libxdmcp6 libexpat1 libpng12-0 libgbm1 libdrm2 libglapi-mesa libffi6 libudev-dev g++ gcc make doxygen qtchooser chrpath patchelf zip autoconf automake gettext
+RUN echo deb http://ftp.de.debian.org/debian jessie-backports main contrib >>/etc/apt/sources.list ; apt-get update ; apt-get install -y -t jessie-backports openjdk-8-jre-headless
CMD /bin/bash
ln -sf /home/konrad/.config/qtchooser /jenkins/.config/qtchooser
echo "Just Linked Qt-Chooser Dir."
} || echo "Qt-Chooser Dir not Found, not Linking it."
-su jenkins -c "nice java -jar slave.jar $1/computer/$2/slave-agent.jnlp"
+su jenkins -c "nice java -jar slave.jar -jnlpUrl $1/computer/$2/slave-agent.jnlp -jnlpCredentials $3"