-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
90 lines (75 loc) · 2.26 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
FROM debian:bookworm
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y dist-upgrade
RUN apt-get -y --no-install-recommends install \
build-essential \
ca-certificates \
cmake \
curl \
doxygen \
g++ \
gdb \
git \
gnupg \
gpg \
less \
libabsl-dev \
libboost-all-dev \
libgrpc++-dev \
libprotobuf-dev \
libssl-dev \
libxtensor-dev \
libusb-1.0-0-dev \
libudev-dev \
libgtk-3-dev \
ninja-build \
pkg-config \
protobuf-compiler-grpc \
software-properties-common \
sudo \
wget
RUN bash -c 'wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add -'
RUN apt-add-repository -y 'deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main'
RUN apt-add-repository -y 'deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main'
RUN apt-get update
RUN apt-get -y --no-install-recommends install -t llvm-toolchain-bookworm-15 \
clang-15 \
clang-format-15 \
clang-tidy-15
RUN mkdir -p /root/opt/src
# Install Viam C++ SDK from source frozen at a commit
ENV PINNED_COMMIT_HASH="5461780d4a6bcab18ed4cba51be1de2feb76dddf"
RUN cd /root/opt/src && \
git clone https://github.com/viamrobotics/viam-cpp-sdk && \
cd viam-cpp-sdk && \
git checkout ${PINNED_COMMIT_HASH} && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVIAMCPPSDK_USE_DYNAMIC_PROTOS=ON -DVIAMCPPSDK_OFFLINE_PROTO_GENERATION=ON -DCMAKE_INSTALL_PREFIX=/usr/local .. -G Ninja && \
ninja all -j 4 && \
ninja install -j 4 && \
rm -rf /root/opt/src/viam-cpp-sdk
# Install appimage-builder deps
RUN apt install -y \
binutils \
coreutils \
desktop-file-utils \
fakeroot \
fuse \
libgdk-pixbuf2.0-dev \
patchelf \
python3-pip python3-setuptools \
squashfs-tools \
strace \
vim \
util-linux zsync
RUN pip3 install -U pip setuptools urllib3==1.26.12 requests==2.26.0 --break-system-packages
# Install appimage-builder
RUN pip3 install --break-system-packages git+https://github.com/AppImageCrafters/appimage-builder.git@61c8ddde9ef44b85d7444bbe79d80b44a6a5576d
# Install Go
RUN apt install -y golang-go
# Install GTest
RUN apt install -y libgtest-dev
# Install Eigen
RUN apt install -y libeigen3-dev