-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
100 lines (80 loc) · 2.42 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
FROM ubuntu:18.04
ENV LANG C.UTF-8
RUN \
apt-get -y -q update && \
# Prevents debconf from prompting for user input
# See https://github.com/phusion/baseimage-docker/issues/58
DEBIAN_FRONTEND=noninteractive apt-get install -y \
gcc \
g++ \
build-essential \
wget \
curl \
unzip \
git \
git-lfs \
python-dev \
autotools-dev \
m4 \
libicu-dev \
build-essential \
libbz2-dev \
libasio-dev \
libeigen3-dev \
freeglut3-dev \
expat \
libcairo2-dev \
cmake \
libboost-dev \
libboost-system-dev \
libboost-thread-dev \
libboost-program-options-dev \
libboost-filesystem-dev \
nlohmann-json-dev \
python3-pip \
ffmpeg \
libffi-dev \
libhdf5-dev \
nano \
htop
# Set up Node.js 15.x repo
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
RUN \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
nodejs
RUN mkdir -p /root/code
# Copy bench-mr folder
COPY . /root/code/bench-mr
WORKDIR /root/code/bench-mr
RUN pip3 install --upgrade setuptools
RUN pip3 install -r python/requirements.txt
# Install ipywidgets for Jupyter Lab
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
# Build and install libccd 1.4
WORKDIR /root/code
RUN wget https://github.com/danfis/libccd/archive/v1.4.zip && unzip v1.4.zip && cd libccd-1.4/src && echo "#define CCD_FLOAT" | cat - ccd/vec3.h > /tmp/out && mv /tmp/out ccd/vec3.h && make -j4 && make install
# Check out git submodules
WORKDIR /root/code/bench-mr
RUN git submodule init && git submodule update
# Build and install SBPL
WORKDIR /root/code
RUN git clone https://github.com/sbpl/sbpl.git && cd sbpl && git checkout 1.3.1 && mkdir build && cd build && cmake .. && make -j4 && make install
# Build and install OMPL
WORKDIR /root/code/bench-mr
RUN git clone https://github.com/ompl/ompl.git && cd ompl && mkdir build && cd build && cmake .. && make -j4 && make install
# Creating Build Files
WORKDIR /root/code/bench-mr
RUN rm -rf build && cmake -H. -Bbuild
# Build bench-mr
RUN cd build && make
# Run benchmark executable to generate benchmark_template.json
WORKDIR /root/code/bench-mr/bin
RUN ./benchmark; exit 0
# Set up git lfs
RUN git lfs install
# Setup repo
WORKDIR /root/code/bench-mr
# Use bash as default shell
SHELL ["/bin/bash", "-c"]
EXPOSE 8888
ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--no-browser", "--NotebookApp.token=''"]