Dockerfile.navstack.ubuntu-galactic 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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:galactic-ros-base-focal
  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
  15. #
  16. # Install packages needed for cloning and building from the source repos
  17. #
  18. # InLaunchNavStackstall the git and build tools
  19. RUN apt-get install -y --no-install-recommends git
  20. # Add additional ROS2/Galactic packages
  21. RUN /bin/bash -c 'source /opt/ros/galactic/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}-control-toolbox'
  30. # Install the O3DE-specific required packages
  31. RUN apt-get install -y --no-install-recommends libglu1-mesa-dev \
  32. mesa-common-dev \
  33. libnvidia-gl-470
  34. # Clone the demo project and register the project
  35. RUN cd $WORKSPACE && \
  36. git clone --recursive $O3DE_DEMO_REPO && \
  37. git -C $WORKSPACE/o3de-demo-project checkout $o3de_demo_branch
  38. COPY LaunchNavStack.bash.ubuntu-galactic /data/workspace/LaunchNavStack.bash
  39. ENV NVIDIA_VISIBLE_DEVICES all
  40. ENV NVIDIA_DRIVER_CAPABILITIES all
  41. ENTRYPOINT ["/bin/bash", "-c"]