Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
monticore
EmbeddedMontiArc
A
applications
reinforcement_learning
forestrl
Commits
0b9370fb
Commit
0b9370fb
authored
Jan 21, 2021
by
Sascha Dewes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying a different install script in the Dockerfile
parent
a48a4d24
Pipeline
#395305
failed with stages
in 21 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
30 deletions
+18
-30
docker/Dockerfile
docker/Dockerfile
+18
-30
No files found.
docker/Dockerfile
View file @
0b9370fb
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment