|
1 | | -ARG BASE_TAG=11.4.2-cudnn8-devel-ubuntu20.04 |
| 1 | +ARG BASE_TAG=12.2.0-devel-ubuntu22.04 |
2 | 2 | FROM nvcr.io/nvidia/cuda:${BASE_TAG} |
3 | 3 | ENV DEBIAN_FRONTEND=noninteractive |
4 | 4 |
|
@@ -39,41 +39,25 @@ RUN apt update && apt install locales && \ |
39 | 39 | ENV LANG=en_US.UTF-8 |
40 | 40 |
|
41 | 41 | RUN apt update && \ |
42 | | - apt install -y curl gnupg2 lsb-release && \ |
43 | | - curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ |
| 42 | + apt install -y git wget curl gnupg2 lsb-release && \ |
| 43 | + curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ |
44 | 44 | 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 && \ |
45 | | - sed -i -e 's/ubuntu .* main/ubuntu focal main/g' /etc/apt/sources.list.d/ros2.list && \ |
| 45 | + sed -i -e 's/ubuntu .* main/ubuntu jammy main/g' /etc/apt/sources.list.d/ros2.list && \ |
46 | 46 | apt update && \ |
47 | | - apt install -y ros-foxy-ros-base \ |
48 | | - python3-colcon-common-extensions \ |
49 | | - ros-foxy-v4l2-camera \ |
50 | | - ros-foxy-cv-bridge \ |
51 | | - ros-foxy-rqt-graph \ |
52 | | - ros-foxy-rqt-image-view && \ |
53 | | - rm -rf /var/lib/apt/lists/* &&\ |
| 47 | + apt install -y ros-humble-ros-base \ |
| 48 | + ros-humble-v4l2-camera \ |
| 49 | + ros-humble-cv-bridge \ |
| 50 | + ros-humble-rqt-image-view \ |
| 51 | + ros-humble-parameter-traits \ |
| 52 | + ros-dev-tools && \ |
54 | 53 | apt -y clean && \ |
| 54 | + rm -rf /var/lib/apt/lists/* && \ |
55 | 55 | pip install -U pip && \ |
56 | 56 | pip install catkin_pkg && \ |
57 | 57 | pip install empy && \ |
58 | 58 | pip install lark && \ |
59 | 59 | python3 -m pip cache purge |
60 | 60 |
|
61 | | -WORKDIR /workdir |
62 | | -ENV YOLOX_VERSION=0.3.0 |
63 | | -RUN git clone --depth 1 https://github.com/Megvii-BaseDetection/YOLOX -b $YOLOX_VERSION && \ |
64 | | - cd YOLOX && \ |
65 | | - # python3 -m pip install -r requirements.txt && \ |
66 | | - python3 -m pip install -U numpy \ |
67 | | - torch>=1.7 \ |
68 | | - opencv_python \ |
69 | | - loguru \ |
70 | | - tqdm \ |
71 | | - torchvision \ |
72 | | - thop \ |
73 | | - ninja \ |
74 | | - tabulate && \ |
75 | | - python3 -m pip install --no-deps . && \ |
76 | | - python3 -m pip cache purge |
77 | 61 |
|
78 | 62 | COPY ./ros_entrypoint.sh /ros_entrypoint.sh |
79 | 63 | RUN echo "source /ros_entrypoint.sh" >> /root/.bashrc |
|
0 commit comments