Skip to content

Commit

Permalink
docs: add autoware_data as shared volume for docker instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
  • Loading branch information
mitsudome-r committed Feb 2, 2024
1 parent 942188c commit 27220ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docs/installation/autoware/docker-installation-devel.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ You might need to log out and log back to make the current user able to use dock
Before proceeding, confirm and agree with the [NVIDIA Deep Learning Container license](https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license).
By pulling and using the Autoware Universe images, you accept the terms and conditions of the license.
1. Create the `autoware_map` directory for map data later.
1. Create the `autoware_map` directory and `autoware_data` directory to store downloaded data later.
```bash
mkdir ~/autoware_map
mkdir ~/autoware_map ~/autoware_data
```
2. Pull the Docker image
Expand All @@ -64,13 +64,13 @@ You might need to log out and log back to make the current user able to use dock
- For amd64 architecture computers with NVIDIA GPU:
```bash
rocker --nvidia --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
rocker --nvidia --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map --volume $HOME/autoware_data -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
```
- If you want to run container without using NVIDIA GPU, or for arm64 architecture computers:
```bash
rocker -e LIBGL_ALWAYS_SOFTWARE=1 --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
rocker -e LIBGL_ALWAYS_SOFTWARE=1 --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map --volume $HOME/autoware_data-- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
```
For detailed reason could be found [here](./docker-installation.md#docker-with-nvidia-gpu-fails-to-start-autoware-on-arm64-devices)
Expand Down Expand Up @@ -122,13 +122,13 @@ You might need to log out and log back to make the current user able to use dock
- For amd64 architecture computers:
```bash
rocker --nvidia --x11 --user --volume $HOME/autoware -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
rocker --nvidia --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map --volume $HOME/autoware_data-- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
```
- If you want to run container without using NVIDIA GPU, or for arm64 architecture computers:
```bash
rocker -e LIBGL_ALWAYS_SOFTWARE=1 --x11 --user --volume $HOME/autoware -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
rocker -e LIBGL_ALWAYS_SOFTWARE=1 --x11 --user --volume $HOME/autoware --volume $HOME/autoware_map --volume $HOME/autoware_data -- ghcr.io/autowarefoundation/autoware-universe:latest-cuda
```
3. Update the `.repos` file.
Expand Down
2 changes: 1 addition & 1 deletion docs/installation/autoware/docker-installation-prebuilt.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
2. Launch a Docker container.

```bash
rocker --nvidia --x11 --user --volume $HOME/autoware_map -- ghcr.io/autowarefoundation/autoware-universe:humble-latest-prebuilt
rocker --nvidia --x11 --user --volume $HOME/autoware_map --volume $HOME/autoware_data -- ghcr.io/autowarefoundation/autoware-universe:humble-latest-prebuilt
```

For more advanced usage, see [here](https://github.com/autowarefoundation/autoware/tree/main/docker/README.md).
Expand Down

0 comments on commit 27220ca

Please sign in to comment.