-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
101 lines (91 loc) · 2.92 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
101
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
# system
RUN echo "Installing apt packages..." \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt -y update --no-install-recommends \
&& apt -y install --no-install-recommends \
git \
wget \
libeigen3-dev \
freeglut3-dev \
sudo \
&& apt autoremove -y \
&& apt clean -y \
&& export DEBIAN_FRONTEND=dialog
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
# install OKVIS dependencies
RUN echo "Installing apt packages..." \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt -y update --no-install-recommends \
&& apt -y install --no-install-recommends \
cmake \
# libatlas-base-dev \
libeigen3-dev \
# libsuitesparse-dev \
libeigen3-dev libopencv-dev qtbase5-dev \
gcc-6 g++-6 \
build-essential \
libboost-all-dev \
libopencv-dev \
# libceres-dev \
libomp-dev \
ca-certificates \
&& apt autoremove -y \
&& apt clean -y \
&& export DEBIAN_FRONTEND=dialog
# # install librealsense
# RUN echo "Installing librealsense..." \
# && export DEBIAN_FRONTEND=noninteractive \
# && apt -y update --no-install-recommends \
# && apt -y install --no-install-recommends \
# libusb-1.0-0-dev \
# libglfw3-dev \
# pkg-config \
# libgtk-3-dev \
# gcc-6 g++-6 \
# build-essential \
# && apt autoremove -y \
# && apt clean -y \
# && export DEBIAN_FRONTEND=dialog
# # install legacy realsense 1
# COPY ./thirdparty/librealsense /opt/librealsense
# RUN cd /opt/librealsense \
# && mkdir build \
# && cd build \
# && cmake -DCMAKE_BUILD_TYPE=Release .. \
# && make -j8 \
# && make install
# # install geographiclib
# RUN echo "Installing geographiclib..."
# RUN git clone git://git.code.sourceforge.net/p/geographiclib/code /opt/geographiclib \
# && cd /opt/geographiclib \
# && mkdir build \
# && cd build \
# && cmake -DCMAKE_BUILD_TYPE=Release .. \
# && make -j8 \
# && make install
# # RUN git clone git@bitbucket.org:sleutenegger/okvis.git /opt/okvis \
# # RUN cd /opt/okvis \
# # && git checkout ofusion++ \
# # TODO: hack, because ofusion++ branch is not public -> replace it with public branch later
# COPY ./thirdparty/okvis /opt/okvis
# RUN cd /opt/okvis \
# && mkdir build \
# && cd build \
# && cmake -D CMAKE_C_COMPILER=gcc-6 -D CMAKE_CXX_COMPILER=g++-6 -DCMAKE_BUILD_TYPE=Release .. \
# && make -j8 \
# && make install
# install librealsense
RUN echo "Installing GUI stuff..." \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt -y update --no-install-recommends \
&& apt -y install --no-install-recommends \
language-pack-en-base \
libcanberra-gtk-module libcanberra-gtk3-module \
&& apt autoremove -y \
&& apt clean -y \
&& export DEBIAN_FRONTEND=dialog
RUN dpkg-reconfigure locales && \
locale-gen en_US.UTF-8 && \
/usr/sbin/update-locale LANG=en_US.UTF-8