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
EXPOSE 8888
# 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 https://download.java.net/openjdk/jdk12/ri/openjdk-12+32_linux-x64_bin.tar.gz --output java.tar.gz
RUN tar xvf java.tar.gz
RUN curl https://download.java.net/openjdk/jdk12/ri/openjdk-12+32_linux-x64_bin.tar.gz --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 https://github.com/uwe-koeckemann/AIDDL.git && 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 https://github.com/uwe-koeckemann/AIDDL.git \
&& 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 response.properties
RUN python3 /opt/ibm/ILOG/CPLEX_Studio1210/python/setup.py install
RUN sh cplex_studio1210.linux-x86-64.bin -f response.properties \
&& python3 /opt/ibm/ILOG/CPLEX_Studio1210/python/setup.py install \
&& rm -rf /deps
WORKDIR /moving-target
RUN jupyter trust ./jupyter/Regression_Example.ipynb
......
......@@ -2,3 +2,4 @@ grpcio==1.37.0
grpcio-tools==1.37.0
matplotlib==3.4.1
numpy==1.20.2
jupyter==1.0.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