forked from PedestrianDynamics/jupedsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
76 lines (62 loc) · 1.87 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -----------------------------------------
# - build:
# docker build jupedsim/jpscore .
# - run:
# docker -it jupedsim/jpscore
# -----------------------------------------
FROM ubuntu:18.04
MAINTAINER Mohcine Chraibi <[email protected]>
# install required packages
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
g++ \
git \
lcov \
doxygen \
wget \
libbz2-dev \
python \
python-dev \
python-pip \
libgmp* \
&& apt-get clean
# set environment
ENV HOME /home/jupedsim
ARG boost_version=1.61.0
ARG boost_dir=boost_1_61_0
ENV boost_version ${boost_version}
ENV BOOST_ROOT /usr
RUN wget http://downloads.sourceforge.net/project/boost/boost/${boost_version}/${boost_dir}.tar.gz \
&& tar xfz ${boost_dir}.tar.gz \
&& rm ${boost_dir}.tar.gz \
&& cd ${boost_dir} \
&& ./bootstrap.sh --with-libraries=filesystem,test,system\
&& ./b2 --without-python --prefix=/usr -j 4 link=shared runtime-link=shared install \
&& cd .. && rm -rf ${boost_dir} && ldconfig
# add user
RUN groupadd -r -g 1000 jupedsim && useradd -r -g jupedsim -u 1000 -m jupedsim
USER jupedsim
# install jpscore
RUN mkdir -p /home/jupedsim/workspace \
&& cd /home/jupedsim/workspace \
&& pwd
# compile cgal
# RUN cd ~ \
# && wget https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.10.2/CGAL-4.10.2.tar.xz \
# && tar -xJvf CGAL-4.10.2.tar.xz \
# && cd CGAL-4.10.2 \
# && cmake . \
# && make
RUN cd /home/jupedsim/workspace \
&& git clone --depth=5 https://gitlab.version.fz-juelich.de/jupedsim/jpscore.git \
&& cd jpscore \
&& mkdir -p build \
&& cd build \
&& cmake ..\
&& make
# install python variant filtering dependencies
#RUN pip install numpy
#RUN pip install matplotlib
# by default /bin/bash is executed
CMD /bin/bash && echo "Thank you for using JuPedSim/jpscore!"