Update docker-compose.yaml

This commit is contained in:
bjoernellens1 2023-10-23 12:22:52 +02:00 committed by GitHub
parent dee2ceb722
commit ceb4b97b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,15 +25,15 @@ services: # in docker compose, service are definitions of your docker containers
x-bake: # Definitions needed for buildx bake. This enhanced docker build system makes things much easier. x-bake: # Definitions needed for buildx bake. This enhanced docker build system makes things much easier.
platforms: platforms:
- linux/amd64 - linux/amd64
environment: environment:
# Allows graphical programs in the container. # Allows graphical programs in the container.
- DISPLAY=${DISPLAY} - DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1 - QT_X11_NO_MITSHM=1
- NVIDIA_DRIVER_CAPABILITIES=all # For Nvidia hardware acceleration (CUDA, ...). This might additionally need some extra tools installed (Nvidia Container Toolkit?) - NVIDIA_DRIVER_CAPABILITIES=all # For Nvidia hardware acceleration (CUDA, ...). This might additionally need some extra tools installed (Nvidia Container Toolkit?)
volumes: volumes:
# Allows graphical programs in the container. # Allows graphical programs in the container.
- /tmp/.X11-unix:/tmp/.X11-unix:rw - /tmp/.X11-unix:/tmp/.X11-unix:rw
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority - ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
# The rest of this file is an example of how I used docker, docker-compose and buildx bake to fully automate image building for the Segway RMP-lite 220 robot platform. # The rest of this file is an example of how I used docker, docker-compose and buildx bake to fully automate image building for the Segway RMP-lite 220 robot platform.