Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add autoware_data as shared volume for docker instructions #515

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading