-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
60 lines (53 loc) · 2.47 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
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu18.04 as glvnd
FROM osrf/ros:humble-desktop-full-jammy
#setup
ENV DEBIAN_FRONTEND="noninteractive"
COPY ./shell_scripts/basic_util.sh /root/
RUN cd /root/ && sudo chmod +x * && ./basic_util.sh && rm -rf basic_util.sh
COPY ./shell_scripts/colcon.sh /root/
RUN cd /root/ && sudo chmod +x * && ./colcon.sh && rm -rf colcon.sh
COPY ./shell_scripts/install_gazebo.sh /root/
RUN cd /root/ && sudo chmod +x * && ./install_gazebo.sh && rm -rf install_gazebo.sh
COPY ./shell_scripts/ros_package_install_essential.sh /root
RUN cd /root/ && sudo chmod +x * && ./ros_package_install_essential.sh && rm -rf ros_package_install_essential.sh
RUN apt-get update && apt-get upgrade -y
#GPU related
# Snippet from extension [nvidia]
RUN apt-get update && apt-get install -y --no-install-recommends \
libglvnd0 \
libgl1 \
libglx0 \
libegl1 \
libgles2
COPY --from=glvnd /usr/share/glvnd/egl_vendor.d/10_nvidia.json /usr/share/glvnd/egl_vendor.d/10_nvidia.json
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:-all}
ENV GZ_VERSION harmonic
# COPY ./root_dir/ros2_ws/ /root/ros2_ws/
# RUN cd /root/ros2_ws/ && rosdep install --from-paths src --ignore-src -r -y
RUN apt-get install -y ros-${ROS_DISTRO}-octomap*
RUN apt-get install -y ros-${ROS_DISTRO}-twist-mux ros-${ROS_DISTRO}-pointcloud-to-laserscan
RUN apt-get install -y xterm
RUN apt-get install -y nano vim ranger nautilus x11-apps
RUN apt-get install -y ros-${ROS_DISTRO}-bondcpp \
ros-${ROS_DISTRO}-bond \
ros-${ROS_DISTRO}-test-msgs \
libsuitesparse-dev \
libceres-dev \
libgraphicsmagick++1-dev \
graphicsmagick-libmagick-dev-compat \
libxtensor-dev \
libomp-dev \
libbenchmark-dev \
ros-${ROS_DISTRO}-ompl \
nlohmann-json3-dev \
ros-${ROS_DISTRO}-behaviortree-cpp-v3 \
lcov \
python3-zmq \
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp
# COPY other_ws/src /root/other_ws/src
# RUN cd /root/other_ws && apt-get update && apt-get update --fix-missing && rosdep install --from-paths src --ignore-src -r -y --simulate
# COPY other_ws/src/slam_toolbox /root/other_ws/src/slam_toolbox
# RUN cd /root/other_ws && apt-get update && apt-get update --fix-missing && rosdep install --from-paths src --ignore-src -r -y
# COPY other_ws/src/navigation2 /root/other_ws/src/navigation2
# RUN cd /root/other_ws && apt-get update && apt-get update --fix-missing && rosdep install --from-paths src --ignore-src -r -y