Commit 0b9370fb authored by Sascha Dewes's avatar Sascha Dewes

trying a different install script in the Dockerfile

parent a48a4d24
Pipeline #395305 failed with stages
in 21 minutes and 27 seconds
FROM ros:kinetic
RUN apt-get update
RUN apt-get install -y unzip g++
RUN apt-get install -y libopenblas-dev libhdf5-serial-dev
ENV PATH="/usr/lib/x86_64-linux-gnu/:${PATH}"
ENV ROS_HOME=/opt/ros/kinetic
CMD ["bash"]
# Essential
RUN apt-get install -y openjdk-8-jdk openjdk-8-jre gcc make cmake ninja-build git python2.7 python-dev python-numpy swig libboost-all-dev curl wget python-tk
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
RUN pip install h5py numpy pyprind matplotlib
RUN apt-get install -y build-essential git ninja-build ccache
RUN apt-get install -y libopenblas-dev libblas-dev
RUN apt-get install -y liblapack-dev libopencv-dev
RUN apt-get install -y libarmadillo-dev cmake
RUN apt-get install -y python2.7 python-dev python-tk
RUN apt-get install -y python-numpy
RUN apt-get install -y python3-pip
RUN apt-get install -y swig unzip
RUN apt-get install -y libboost-all-dev
# Maven
RUN apt-get install -y maven
# Armadillo
ADD armadillo-9.600.6.zip /root/armadillo.zip
RUN unzip /root/armadillo.zip -d /root/armadillo
RUN apt-get install -y libopenblas-dev liblapack-dev
RUN cd /root/armadillo/armadillo-9.600.6 && \
cmake . && \
make && \
make install
# MXNET
RUN apt-get install -y libopenblas-dev
RUN apt-get install -y libblas-dev liblapack-dev
RUN apt-get install -y build-essential
RUN apt-get install -y libopenblas-dev
RUN apt-get install -y libopencv-dev
RUN cd /root/armadillo/armadillo-9.600.6 && cmake . && make && make install
RUN git clone --recursive https://github.com/apache/incubator-mxnet.git mxnet
RUN cd mxnet && git checkout tags/1.5.0 && git submodule update --recursive --init
RUN cd mxnet && mkdir build && cd build && cmake -DUSE_CPP_PACKAGE=1 -DUSE_CUDA=0 -GNinja .. && ninja
RUN cd mxnet && cp -r include/mxnet /usr/include/mxnet && cp -r cpp-package/include/mxnet-cpp /usr/include/ && cp -r 3rdparty/tvm/nnvm/include/nnvm /usr/include/ && cp -r 3rdparty/dmlc-core/include/dmlc /usr/include/
RUN pip install numpy==1.16.5 mxnet==1.5.0
RUN cp -r "$(dirname $(python -c 'import mxnet; print(mxnet.__file__)'))/libmxnet.so" /usr/lib
# Numpy Library
RUN rm -rf /usr/include/numpy && \
ln -s "$(python -c 'import numpy; print(numpy.get_include())')/numpy" /usr/include
RUN pip3 install --user --upgrade "cmake>=3.13.2"
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python get-pip.py
RUN pip install --user h5py matplotlib numpy==1.16.5 mxnet==1.5.1.post0
# Set Display for TKInter
RUN mkdir -p /root/.config/matplotlib
RUN echo "backend : Agg" > /root/.config/matplotlib/matplotlibrc
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