-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from Ar-Ray-code/feat/jazzy
support ubuntu24 (but there is not tested)
- Loading branch information
Showing
13 changed files
with
93 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,46 @@ | ||
ARG BASE_TAG=11.7.1-cudnn8-devel-ubuntu22.04 | ||
FROM nvcr.io/nvidia/cuda:${BASE_TAG} | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ARG BASE_TAG=12.6.1-cudnn-devel-ubuntu24.04 | ||
FROM nvidia/cuda:${BASE_TAG} | ||
|
||
ENV TZ=Asia/Tokyo | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} | ||
RUN apt update && \ | ||
apt install -y python3-dev python3-pip \ | ||
ca-certificates g++ gcc make git aria2 && \ | ||
|
||
RUN apt update && apt install -y locales git cmake wget curl gnupg2 lsb-release python3-numpy python3-setuptools python3-wheel && \ | ||
locale-gen en_US en_US.UTF-8 && \ | ||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ | ||
apt -y clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
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 && \ | ||
tar -zxf /tmp/cmake-3.21.0-linux-x86_64.tar.gz --strip=1 -C /usr | ||
RUN python3 -m pip install -U pip && \ | ||
python3 -m pip install -U numpy setuptools wheel && \ | ||
python3 -m pip cache purge | ||
rm -rf /var/lib/apt/lists/* | ||
ENV LANG=en_US.UTF-8 | ||
|
||
WORKDIR /workdir | ||
RUN git clone --depth 1 --recursive https://github.com/microsoft/onnxruntime -b v1.12.1 && \ | ||
RUN git clone --depth 1 --recursive https://github.com/microsoft/onnxruntime -b v1.19.2 && \ | ||
cd onnxruntime && \ | ||
./build.sh --cudnn_home /usr/lib/x86_64-linux-gnu/ \ | ||
--cuda_home /usr/local/cuda \ | ||
--use_cuda \ | ||
--config RelWithDebInfo \ | ||
--build_shared_lib \ | ||
--allow_running_as_root \ | ||
--skip_tests && \ | ||
cd build/Linux/RelWithDebInfo && \ | ||
make install && \ | ||
rm -r /workdir/onnxruntime | ||
|
||
# Install ROS2 | ||
RUN apt update && apt install locales && \ | ||
locale-gen en_US en_US.UTF-8 && \ | ||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ | ||
apt -y clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ENV LANG=en_US.UTF-8 | ||
make install | ||
|
||
RUN apt update && \ | ||
apt install -y git wget curl gnupg2 lsb-release && \ | ||
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ | ||
RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ | ||
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 && \ | ||
sed -i -e 's/ubuntu .* main/ubuntu jammy main/g' /etc/apt/sources.list.d/ros2.list && \ | ||
sed -i -e 's/ubuntu .* main/ubuntu noble main/g' /etc/apt/sources.list.d/ros2.list && \ | ||
apt update && \ | ||
apt install -y ros-dev-tools \ | ||
ros-humble-cv-bridge \ | ||
ros-humble-generate-parameter-library \ | ||
ros-humble-parameter-traits \ | ||
ros-humble-ros-base \ | ||
ros-humble-rqt-image-view \ | ||
ros-humble-v4l2-camera && \ | ||
ros-jazzy-cv-bridge \ | ||
ros-jazzy-generate-parameter-library \ | ||
ros-jazzy-parameter-traits \ | ||
ros-jazzy-ros-base \ | ||
ros-jazzy-rqt-image-view \ | ||
ros-jazzy-usb-cam \ | ||
ros-jazzy-vision-msgs && \ | ||
apt -y clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install -U pip && \ | ||
pip install catkin_pkg && \ | ||
pip install empy && \ | ||
pip install lark && \ | ||
python3 -m pip cache purge | ||
|
||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /workspace | ||
COPY ./ros_entrypoint.sh /ros_entrypoint.sh | ||
RUN echo "source /ros_entrypoint.sh" >> /root/.bashrc | ||
# ENTRYPOINT ["/ros_entrypoint.sh"] | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/bash | ||
source /opt/ros/humble/setup.bash | ||
source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash | ||
source /opt/ros/jazzy/setup.bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#!/bin/bash | ||
source /opt/ros/humble/setup.bash | ||
source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash | ||
|
||
source /opt/ros/jazzy/setup.bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/bash | ||
source /opt/ros/humble/setup.bash | ||
source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash | ||
source /opt/ros/jazzy/setup.bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>yolox_cpp</name> | ||
<version>0.4.0</version> | ||
<version>0.4.1</version> | ||
<description>The yolox_cpp package</description> | ||
<maintainer email="[email protected]">fateshelled</maintainer> | ||
<license>Apache-2.0 License</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>yolox_param</name> | ||
<version>0.4.0</version> | ||
<version>0.4.1</version> | ||
<description>YOLOX-ROS Parameter Package</description> | ||
<maintainer email="[email protected]">Ar-Ray-code</maintainer> | ||
<license>Apache-2.0</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>yolox_ros_cpp</name> | ||
<version>0.4.0</version> | ||
<version>0.4.1</version> | ||
<description>The yolox_ros_cpp package</description> | ||
<maintainer email="[email protected]">fateshelled</maintainer> | ||
<license>Apache-2.0 License</license> | ||
|