-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
88 lines (78 loc) · 2.03 KB
/
Dockerfile
File metadata and controls
88 lines (78 loc) · 2.03 KB
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
FROM ubuntu:20.04
# Set non-interactive mode for apt
ENV DEBIAN_FRONTEND=noninteractive
# Update and install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
libboost-dev \
libyaml-cpp-dev \
libomp-dev \
flex \
bison \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install CMake
RUN wget https://github.com/Kitware/CMake/releases/download/v3.25.3/cmake-3.25.3-linux-x86_64.sh && \
sh cmake-3.25.3-linux-x86_64.sh --skip-license --prefix=/usr/local && \
rm cmake-3.25.3-linux-x86_64.sh
# Install additional dependencies
RUN apt-get update && apt-get install -y \
libboost-all-dev \
libeigen3-dev \
pkg-config \
libflann-dev \
libusb-1.0-0-dev \
libpng-dev \
libqhull-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
freeglut3-dev \
zlib1g-dev \
libpcap-dev \
libtbb-dev
# Install GTSAM
RUN wget https://github.com/borglab/gtsam/archive/refs/tags/4.1.1.zip -O /tmp/gtsam-4.1.1.zip && \
cd /tmp && \
unzip gtsam-4.1.1.zip && \
cd gtsam-4.1.1 && \
mkdir build && cd build && \
cmake .. && \
make -j4 && \
make install && \
rm -rf /tmp/gtsam-4.1.1 /tmp/gtsam-4.1.1.zip
# Install VTK and Qt
RUN apt-get update && apt-get install -y \
libvtk7-dev \
qtbase5-dev \
libqt5opengl5-dev \
libglew-dev \
libxi-dev \
libxmu-dev
# Install PCL 1.10.0
RUN git clone https://github.com/PointCloudLibrary/pcl.git /pcl && \
cd /pcl && \
git checkout pcl-1.10.0 && \
mkdir build && cd build && \
cmake .. && \
make -j4 && \
make install
# Install GLOG
RUN git clone https://github.com/google/glog.git /glog && \
cd /glog && \
mkdir build && cd build && \
cmake .. && \
make -j4 && \
make install
# Install iGraph
RUN git clone https://github.com/igraph/igraph.git /igraph && \
cd /igraph && \
git checkout 0.9.9 && \
mkdir build && cd build && \
cmake .. && \
make -j4 && \
make install
# Set the working directory
WORKDIR /G3Reg