|
1 | | -ARG BASE_TAG=11.7.1-cudnn8-devel-ubuntu22.04 |
2 | | -FROM nvcr.io/nvidia/cuda:${BASE_TAG} |
3 | | -ENV DEBIAN_FRONTEND=noninteractive |
| 1 | +ARG BASE_TAG=12.6.1-cudnn-devel-ubuntu24.04 |
| 2 | +FROM nvidia/cuda:${BASE_TAG} |
4 | 3 |
|
5 | | -ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} |
6 | | -RUN apt update && \ |
7 | | - apt install -y python3-dev python3-pip \ |
8 | | - ca-certificates g++ gcc make git aria2 && \ |
9 | | - apt -y clean && \ |
10 | | - rm -rf /var/lib/apt/lists/* && \ |
11 | | - aria2c -q -d /tmp -o cmake-3.21.0-linux-x86_64.tar.gz https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.21.0-linux-x86_64.tar.gz && \ |
12 | | - tar -zxf /tmp/cmake-3.21.0-linux-x86_64.tar.gz --strip=1 -C /usr |
13 | | -RUN python3 -m pip install -U pip && \ |
14 | | - python3 -m pip install -U numpy setuptools wheel && \ |
15 | | - python3 -m pip cache purge |
| 4 | +ENV TZ=Asia/Tokyo |
| 5 | +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| 6 | +ENV DEBIAN_FRONTEND=noninteractive |
16 | 7 |
|
17 | | -WORKDIR /workdir |
18 | | -RUN git clone --depth 1 --recursive https://github.com/microsoft/onnxruntime -b v1.12.1 && \ |
19 | | - cd onnxruntime && \ |
20 | | - ./build.sh --cudnn_home /usr/lib/x86_64-linux-gnu/ \ |
21 | | - --cuda_home /usr/local/cuda \ |
22 | | - --use_cuda \ |
23 | | - --config RelWithDebInfo \ |
24 | | - --build_shared_lib \ |
25 | | - --skip_tests && \ |
26 | | - cd build/Linux/RelWithDebInfo && \ |
27 | | - make install && \ |
28 | | - rm -r /workdir/onnxruntime |
| 8 | +ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} |
29 | 9 |
|
30 | | -# Install ROS2 |
31 | | -RUN apt update && apt install locales && \ |
| 10 | +RUN apt update && apt install -y locales git cmake wget curl gnupg2 lsb-release python3-numpy python3-setuptools python3-wheel && \ |
32 | 11 | locale-gen en_US en_US.UTF-8 && \ |
33 | 12 | update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ |
34 | 13 | apt -y clean && \ |
35 | 14 | rm -rf /var/lib/apt/lists/* |
36 | 15 | ENV LANG=en_US.UTF-8 |
37 | 16 |
|
38 | | -RUN apt update && \ |
39 | | - apt install -y git wget curl gnupg2 lsb-release && \ |
40 | | - curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ |
41 | | - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null && \ |
42 | | - sed -i -e 's/ubuntu .* main/ubuntu jammy main/g' /etc/apt/sources.list.d/ros2.list && \ |
43 | | - apt update && \ |
44 | | - apt install -y ros-dev-tools \ |
45 | | - ros-humble-cv-bridge \ |
46 | | - ros-humble-generate-parameter-library \ |
47 | | - ros-humble-parameter-traits \ |
48 | | - ros-humble-ros-base \ |
49 | | - ros-humble-rqt-image-view \ |
50 | | - ros-humble-v4l2-camera && \ |
51 | | - apt -y clean && \ |
52 | | - rm -rf /var/lib/apt/lists/* && \ |
53 | | - pip install -U pip && \ |
54 | | - pip install catkin_pkg && \ |
55 | | - pip install empy && \ |
56 | | - pip install lark && \ |
57 | | - python3 -m pip cache purge |
| 17 | +WORKDIR /workdir |
| 18 | +# RUN git clone --depth 1 --recursive https://github.com/microsoft/onnxruntime -b v1.12.1 && \ |
| 19 | +# cd onnxruntime && \ |
| 20 | +# ./build.sh --cudnn_home /usr/lib/x86_64-linux-gnu/ \ |
| 21 | +# --cuda_home /usr/local/cuda \ |
| 22 | +# --use_cuda \ |
| 23 | +# --config RelWithDebInfo \ |
| 24 | +# --build_shared_lib \ |
| 25 | +# --skip_tests && \ |
| 26 | +# cd build/Linux/RelWithDebInfo && \ |
| 27 | +# make install && \ |
| 28 | +# rm -r /workdir/onnxruntime |
58 | 29 |
|
| 30 | +# RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ |
| 31 | +# echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null && \ |
| 32 | +# sed -i -e 's/ubuntu .* main/ubuntu noble main/g' /etc/apt/sources.list.d/ros2.list && \ |
| 33 | +# apt update && \ |
| 34 | +# apt install -y ros-dev-tools \ |
| 35 | +# ros-jazzy-cv-bridge \ |
| 36 | +# ros-jazzy-generate-parameter-library \ |
| 37 | +# ros-jazzy-parameter-traits \ |
| 38 | +# ros-jazzy-ros-base \ |
| 39 | +# ros-jazzy-rqt-image-view \ |
| 40 | +# ros-jazzy-usb-cam \ |
| 41 | +# ros-jazzy-vision-msgs && \ |
| 42 | +# apt -y clean && \ |
| 43 | +# rm -rf /var/lib/apt/lists/* |
59 | 44 |
|
60 | | -COPY ./ros_entrypoint.sh /ros_entrypoint.sh |
61 | | -RUN echo "source /ros_entrypoint.sh" >> /root/.bashrc |
62 | | -# ENTRYPOINT ["/ros_entrypoint.sh"] |
63 | | -CMD ["bash"] |
| 45 | +# WORKDIR /workspace |
| 46 | +# COPY ./ros_entrypoint.sh /ros_entrypoint.sh |
| 47 | +# RUN echo "source /ros_entrypoint.sh" >> /root/.bashrc |
0 commit comments