From 0f27f6f9fdf7da38be29071752df3bd3e4fdf54f Mon Sep 17 00:00:00 2001 From: apvrille <ludovic.apvrille@eurecom.fr> Date: Thu, 7 Oct 2021 17:46:38 +0200 Subject: [PATCH] New docker file --- scripts/Dockerfile | 29 +++++------------------------ scripts/eval.sh | 10 ++++++++-- 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 92e143e656..96f714d609 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 3cab5ac67b..26ca20d41f 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 -- GitLab