-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
50 lines (43 loc) · 2.55 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
FROM ros:humble-ros-base
ARG https_proxy
ARG HTTPS_PROXY
ENV SHELL=/bin/bash
SHELL ["/bin/bash", "-c"]
WORKDIR /rm_auto_aim
# init
RUN apt-get update && \
apt-get install vim wget curl git cmake ninja-build kmod ros-humble-foxglove-bridge -y
# apt-get install gpg-agent -y && \
# wget https://repositories.intel.com/gpu/ubuntu/dists/jammy/lts/2350/intel-gpu-ubuntu-jammy-2350.run && \
# chmod +x intel-gpu-ubuntu-jammy-2350.run && \
# ./intel-gpu-ubuntu-jammy-2350.run && \
# chmod +x scripts/submodule_update_with_gitee.sh && \
# ./scripts/submodule_update_with_gitee.sh && \
# Install OpenVINO
RUN cd /tmp && \
git clone https://github.com/openvinotoolkit/openvino.git --depth=1 && cd openvino && \
git submodule update --init --recursive && \
chmod +x install_build_dependencies.sh && ./install_build_dependencies.sh && \
cmake -B build -G "Ninja" && cmake --build build -j$(nproc) && cmake --build build --target install -j$(nproc) && \
rm -Rf /tmp/openvino
# From GPU
RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \
curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \
curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \
curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \
dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps
# Clone repository
RUN cd /rm_auto_aim && git clone https://github.com/yxSakana/rm_auto_aim.git ./src --depth=1 && \
apt-get update && rosdep install --from-paths src --ignore-src -r -y && \
. /opt/ros/humble/setup.sh && . /usr/local/setupvars.sh && \
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo && \
sed --in-place --expression \
'$isource "/rm_auto_aim/install/setup.bash"' \
/ros_entrypoint.sh && \
rm -Rf /var/lib/apt/lists/* && \
echo "source "/opt/ros/humble/setup.sh"" >> /root/.bashrc && \
echo 'export LD_LIBRARY_PATH=/rm_auto_aim/src/hik_camera/hik_sdk/lib/amd64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}' >> /root/.bashrc && \
echo "source "/rm_auto_aim/install/setup.bash"" >> /root/.bashrc && \
echo "source "/usr/local/setupvars.sh"" >> /root/.bashrc