diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 92e143e656fbffd7b456d1e34cd430f2b15b8e0f..96f714d609dbcca82ca99c300c492c730bfedf53 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -1,33 +1,14 @@ +FROM gradle:4.7.0-jdk8-alpine AS build FROM debian:latest + + MAINTAINER Ludovic Apvrille <ludovic.apvrille@telecom-paris.fr> RUN apt-get clean RUN apt-get update RUN apt-get -y install apt-utils RUN apt-get -y install make git-core python3 - -ENV JAVA_VERSION 8u77 -ENV BUILD_VERSION b03 - -WORKDIR /tmp - -RUN apt-get update; apt-get install -y wget - -RUN wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz" -O jdk-8-linux-x64.tar.gz -RUN tar xzf jdk-8-linux-x64.tar.gz; mkdir -p /opt/java; mv jdk1.8.0_131 /opt/java; ln -s /opt/java/jdk1.8.0_131 /opt/java/latest; ln -s /opt/java/latest /opt/java/default - -# JDK stripping -RUN rm -f /opt/java/jdk1.8.0_131/src.zip /opt/java/jdk1.8.0_131/javafx-src.zip -RUN rm -rf /opt/java/jdk1.8.0_131/lib/missioncontrol/ /opt/java/jdk1.8.0_131/lib/visualvm/ /opt/java/jdk1.8.0_131/db/ - -RUN update-alternatives --install /usr/bin/java java /opt/java/latest/bin/java 1 -RUN update-alternatives --install /usr/bin/javac javac /opt/java/latest/bin/javac 1 - -ENV JAVA_HOME /opt/java/latest -ENV PATH $PATH:$JAVA_HOME/bin +RUN update-alternatives --install /usr/bin/python \ + python /usr/bin/python3 2 -RUN update-alternatives --install /usr/bin/python \ - python /usr/bin/python3 2 - -RUN rm -f jdk-8-linux-x64.tar.gz; apt-get remove -y wget; apt-get autoremove -y; apt-get clean -y; apt-get autoclean -y diff --git a/scripts/eval.sh b/scripts/eval.sh index 3cab5ac67bc54f49c1f01d4aed334a692c89d7cf..26ca20d41fba288329b8e1a63056ca739069a1e2 100755 --- a/scripts/eval.sh +++ b/scripts/eval.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +printf 'testing\n' +make noguitest -printf 'SUCCESS\n' +if [ $? -eq 0 ] then + printf 'SUCCESS\n' + exit 0 +fi + +exit 1 -exit 0