Dockerfile.navstack.ubuntu-humble 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright (c) Contributors to the Open 3D Engine Project.
  2. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 OR MIT
  5. #
  6. FROM ros:humble-ros-base-jammy
  7. ARG o3de_demo_branch=main
  8. ENV WORKSPACE=/data/workspace
  9. ENV DEBIAN_FRONTEND=noninteractive
  10. ENV O3DE_DEMO_REPO=https://github.com/RobotecAI/o3de-demo-project.git
  11. WORKDIR $WORKSPACE
  12. RUN apt-get update && apt-get upgrade -y
  13. # Add additional package repositories needed for packages
  14. RUN apt-get install -y --no-install-recommends gpg wget curl
  15. #
  16. # Install packages needed for cloning and building from the source repos
  17. #
  18. # Install the git and build tools
  19. RUN apt-get install -y --no-install-recommends git
  20. # Add additional ROS2/Humble packages
  21. RUN /bin/bash -c 'source /opt/ros/humble/setup.bash && \
  22. apt install --no-install-recommends -y ros-${ROS_DISTRO}-desktop \
  23. ros-${ROS_DISTRO}-slam-toolbox \
  24. ros-${ROS_DISTRO}-navigation2 \
  25. ros-${ROS_DISTRO}-nav2-bringup \
  26. ros-${ROS_DISTRO}-pointcloud-to-laserscan \
  27. ros-${ROS_DISTRO}-gazebo-msgs \
  28. ros-${ROS_DISTRO}-ackermann-msgs \
  29. ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
  30. ros-${ROS_DISTRO}-control-toolbox'
  31. # Install the O3DE-specific required packages
  32. RUN apt-get install -y --no-install-recommends libglu1-mesa-dev \
  33. mesa-common-dev \
  34. libnvidia-gl-470
  35. # Clone the demo project and register the project
  36. RUN cd $WORKSPACE && \
  37. git clone --recursive $O3DE_DEMO_REPO && \
  38. git -C $WORKSPACE/o3de-demo-project checkout $o3de_demo_branch
  39. COPY LaunchNavStack.bash.ubuntu-humble /data/workspace/LaunchNavStack.bash
  40. ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
  41. ENV NVIDIA_VISIBLE_DEVICES all
  42. ENV NVIDIA_DRIVER_CAPABILITIES all
  43. ENTRYPOINT ["/bin/bash", "-c"]