123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- # Copyright (c) Contributors to the Open 3D Engine Project.
- # For complete copyright and license terms please see the LICENSE at the root of this distribution.
- #
- # SPDX-License-Identifier: Apache-2.0 OR MIT
- #
- FROM ros:galactic-ros-base-focal
- ARG o3de_demo_branch=main
- ENV WORKSPACE=/data/workspace
- ENV DEBIAN_FRONTEND=noninteractive
- ENV O3DE_DEMO_REPO=https://github.com/RobotecAI/o3de-demo-project.git
- WORKDIR $WORKSPACE
- RUN apt-get update && apt-get upgrade -y
- # Add additional package repositories needed for packages
- RUN apt-get install -y --no-install-recommends gpg wget
- #
- # Install packages needed for cloning and building from the source repos
- #
- # InLaunchNavStackstall the git and build tools
- RUN apt-get install -y --no-install-recommends git
- # Add additional ROS2/Galactic packages
- RUN /bin/bash -c 'source /opt/ros/galactic/setup.bash && \
- apt install --no-install-recommends -y ros-${ROS_DISTRO}-desktop \
- ros-${ROS_DISTRO}-slam-toolbox \
- ros-${ROS_DISTRO}-navigation2 \
- ros-${ROS_DISTRO}-nav2-bringup \
- ros-${ROS_DISTRO}-pointcloud-to-laserscan \
- ros-${ROS_DISTRO}-gazebo-msgs \
- ros-${ROS_DISTRO}-ackermann-msgs \
- ros-${ROS_DISTRO}-control-toolbox'
- # Install the O3DE-specific required packages
- RUN apt-get install -y --no-install-recommends libglu1-mesa-dev \
- mesa-common-dev \
- libnvidia-gl-470
- # Clone the demo project and register the project
- RUN cd $WORKSPACE && \
- git clone --recursive $O3DE_DEMO_REPO && \
- git -C $WORKSPACE/o3de-demo-project checkout $o3de_demo_branch
- COPY LaunchNavStack.bash.ubuntu-galactic /data/workspace/LaunchNavStack.bash
- ENV NVIDIA_VISIBLE_DEVICES all
- ENV NVIDIA_DRIVER_CAPABILITIES all
-
- ENTRYPOINT ["/bin/bash", "-c"]
|