Explorar o código

update docker readme/file

Signed-off-by: Jan Hanca <[email protected]>
Jan Hanca hai 1 ano
pai
achega
2b111915f3
Modificáronse 3 ficheiros con 15 adicións e 10 borrados
  1. 5 5
      Docker/Dockerfile
  2. 9 4
      Docker/README.md
  3. 1 1
      project.json

+ 5 - 5
Docker/Dockerfile

@@ -19,10 +19,10 @@ ARG IMAGE_TYPE=simulation  # Default to 'simulation'
 
 
 # Arguments for the source repos needed for the robot vacuum sample docker
 # Arguments for the source repos needed for the robot vacuum sample docker
 ARG O3DE_REPO=https://github.com/o3de/o3de.git
 ARG O3DE_REPO=https://github.com/o3de/o3de.git
-ARG O3DE_BRANCH=5b30aaf
+ARG O3DE_BRANCH=2310.1
 
 
 ARG O3DE_EXTRAS_REPO=https://github.com/o3de/o3de-extras.git
 ARG O3DE_EXTRAS_REPO=https://github.com/o3de/o3de-extras.git
-ARG O3DE_EXTRAS_BRANCH=3464657
+ARG O3DE_EXTRAS_BRANCH=2310.1
 
 
 ARG LOFT_GEM_REPO=https://github.com/o3de/loft-arch-vis-sample.git
 ARG LOFT_GEM_REPO=https://github.com/o3de/loft-arch-vis-sample.git
 ARG LOFT_GEM_BRANCH=main
 ARG LOFT_GEM_BRANCH=main
@@ -99,7 +99,7 @@ COPY cleanup.bash /data/workspace/cleanup.bash
 RUN if [ "${IMAGE_TYPE}" = "simulation" ]; then \
 RUN if [ "${IMAGE_TYPE}" = "simulation" ]; then \
         apt-get install -y --no-install-recommends ros-${ROS_DISTRO}-desktop && \
         apt-get install -y --no-install-recommends ros-${ROS_DISTRO}-desktop && \
         cd $WORKSPACE && \
         cd $WORKSPACE && \
-        git clone --recursive $O3DE_REPO && \
+        git clone $O3DE_REPO && \
         git -C $WORKSPACE/o3de checkout $O3DE_BRANCH &&\
         git -C $WORKSPACE/o3de checkout $O3DE_BRANCH &&\
         git -C $WORKSPACE/o3de lfs install && \
         git -C $WORKSPACE/o3de lfs install && \
         git -C $WORKSPACE/o3de lfs pull && \
         git -C $WORKSPACE/o3de lfs pull && \
@@ -108,12 +108,12 @@ RUN if [ "${IMAGE_TYPE}" = "simulation" ]; then \
         git clone $O3DE_EXTRAS_REPO && \
         git clone $O3DE_EXTRAS_REPO && \
         git -C $WORKSPACE/o3de-extras checkout $O3DE_EXTRAS_BRANCH &&\
         git -C $WORKSPACE/o3de-extras checkout $O3DE_EXTRAS_BRANCH &&\
         $WORKSPACE/o3de/scripts/o3de.sh register -gp $WORKSPACE/o3de-extras/Gems/ROS2 && \
         $WORKSPACE/o3de/scripts/o3de.sh register -gp $WORKSPACE/o3de-extras/Gems/ROS2 && \
-        git clone --recursive $LOFT_GEM_REPO && \
+        git clone $LOFT_GEM_REPO && \
         git -C $WORKSPACE/loft-arch-vis-sample checkout $LOFT_GEM_BRANCH &&\
         git -C $WORKSPACE/loft-arch-vis-sample checkout $LOFT_GEM_BRANCH &&\
         git -C $WORKSPACE/loft-arch-vis-sample lfs install && \
         git -C $WORKSPACE/loft-arch-vis-sample lfs install && \
         git -C $WORKSPACE/loft-arch-vis-sample lfs pull && \
         git -C $WORKSPACE/loft-arch-vis-sample lfs pull && \
         $WORKSPACE/o3de/scripts/o3de.sh register -gp $WORKSPACE/loft-arch-vis-sample/Gems/ArchVis/ && \
         $WORKSPACE/o3de/scripts/o3de.sh register -gp $WORKSPACE/loft-arch-vis-sample/Gems/ArchVis/ && \
-        git clone --recursive $ROBOT_VAC_SAMPLE_REPO && \
+        git clone $ROBOT_VAC_SAMPLE_REPO && \
         git -C $WORKSPACE/RobotVacuumSample checkout $ROBOT_VAC_SAMPLE_BRANCH &&\
         git -C $WORKSPACE/RobotVacuumSample checkout $ROBOT_VAC_SAMPLE_BRANCH &&\
         git -C $WORKSPACE/RobotVacuumSample lfs install && \
         git -C $WORKSPACE/RobotVacuumSample lfs install && \
         git -C $WORKSPACE/RobotVacuumSample lfs pull && \
         git -C $WORKSPACE/RobotVacuumSample lfs pull && \

+ 9 - 4
Docker/README.md

@@ -89,13 +89,18 @@ Alternatively, you can use [Rocker](https://github.com/osrf/rocker) to run a GPU
 Launch the built simulation docker image with the following rocker command
 Launch the built simulation docker image with the following rocker command
 
 
 ```
 ```
-rocker --x11 --nvidia o3de_robot_vacuum_simulation:latest /data/workspace/LaunchSimulation.bash
+rocker --x11 --nvidia --network="bridge" o3de_robot_vacuum_simulation:latest /data/workspace/LaunchSimulation.bash
 ```
 ```
 
 
 Once the simulation is up and running, launch the robot application docker image, which will bring up RViz to control the robot.
 Once the simulation is up and running, launch the robot application docker image, which will bring up RViz to control the robot.
 
 
 ```
 ```
-rocker --x11 --nvidia o3de_robot_vacuum_navstack:latest /data/workspace/LaunchNavStack.bash
+rocker --x11 --nvidia --network="bridge" o3de_robot_vacuum_navstack:latest /data/workspace/LaunchNavStack.bash
+```
+
+Note: you might reuse the simulation docker image instead.
+```
+rocker --x11 --nvidia --network="bridge" o3de_robot_vacuum_simulation:latest /data/workspace/LaunchNavStack.bash
 ```
 ```
 
 
 ## Advanced Options
 ## Advanced Options
@@ -125,8 +130,8 @@ In addition the repositories, the following arguments target the branch, commit,
 
 
 | Argument                | Repository                       | Default     |
 | Argument                | Repository                       | Default     |
 |-------------------------|----------------------------------|-------------|
 |-------------------------|----------------------------------|-------------|
-| O3DE_BRANCH             | O3DE                             | 3ec71ff     |
-| O3DE_EXTRAS_BRANCH      | O3DE Extras                      | 3464657     |
+| O3DE_BRANCH             | O3DE                             | 2310.1      |
+| O3DE_EXTRAS_BRANCH      | O3DE Extras                      | 2310.1      |
 | LOFT_GEM_BRANCH         | Loft ArchVis Sample Scene        | main        |
 | LOFT_GEM_BRANCH         | Loft ArchVis Sample Scene        | main        |
 | ROBOT_VAC_SAMPLE_BRANCH | Loft Scene Simulation repository | main        |
 | ROBOT_VAC_SAMPLE_BRANCH | Loft Scene Simulation repository | main        |
 
 

+ 1 - 1
project.json

@@ -21,5 +21,5 @@
         "ROS2",
         "ROS2",
         "ArchVis"
         "ArchVis"
     ],
     ],
-    "engine_version": "2.1.0"
+    "engine_version": "2.2.0"
 }
 }