Commit 98ab8c39 authored by Uwe Köckemann's avatar Uwe Köckemann
Browse files

Cleaning up Dockerfile and requirements

parent 2ba74222
......@@ -5,17 +5,15 @@ WORKDIR /moving-target
COPY requirements.txt requirements.txt
# RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
RUN pip3 install jupyter
COPY . /moving-target
RUN apt-get -y update
RUN apt-get -y install git curl
RUN apt-get -y update \
&& apt-get -y install git curl \
&& rm -rf /var/lib/apt/lists/*
RUN curl --output java.tar.gz
RUN tar xvf java.tar.gz
RUN curl --output java.tar.gz && tar xvf java.tar.gz && rm -f ./java.tar.gz
ENV PYTHONPATH="/moving-target/AIDDL/core/python/src:/moving-target/AIDDL/network/python"
ENV AIDDL_PATH="/moving-target/AIDDL/core/aiddl:/moving-target/AIDDL/common/aiddl"
......@@ -23,14 +21,17 @@ ENV AIDDL_PATH="/moving-target/AIDDL/core/aiddl:/moving-target/AIDDL/common/aidd
ENV JAVA_HOME="/moving-target/jdk-12"
ENV PATH="/moving-target/jdk-12/bin:${PATH}"
RUN git clone && cd AIDDL && git checkout develop
RUN cd AIDDL/core/java/ && ./gradlew publishToMavenLocal
RUN cd AIDDL/common/java/ && ./gradlew publishToMavenLoca
RUN cd AIDDL/network/java/ && ./gradlew publishToMavenLocal
RUN git clone \
&& cd AIDDL && git checkout develop \
&& cd core/java/ && ./gradlew publishToMavenLocal \
&& cd ../../common/java/ && ./gradlew publishToMavenLocal \
&& cd ../../network/java/ && ./gradlew publishToMavenLocal
WORKDIR /moving-target/deps
RUN sh cplex_studio1210.linux-x86-64.bin -f
RUN python3 /opt/ibm/ILOG/CPLEX_Studio1210/python/ install
RUN sh cplex_studio1210.linux-x86-64.bin -f \
&& python3 /opt/ibm/ILOG/CPLEX_Studio1210/python/ install \
&& rm -rf /deps
WORKDIR /moving-target
RUN jupyter trust ./jupyter/Regression_Example.ipynb
......@@ -2,3 +2,4 @@ grpcio==1.37.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment