Skip to content

Commit

Permalink
Add User env to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Dec 4, 2024
1 parent 48dfc63 commit a529cbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/compose.hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
devices:
- ${SERIAL_PORT:-/dev/ttyUSB0}
- /dev/bus/usb/ # FTDI
environment:
- USER
command: >
ros2 launch rosbot_bringup bringup.launch.py
mecanum:=${MECANUM:-False}
Expand Down
2 changes: 2 additions & 0 deletions docker/compose.simulation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ x-gpu-config:
&gpu-config
runtime: nvidia
environment:
- USER
- DISPLAY=${DISPLAY:?err}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all

x-cpu-config:
&cpu-config
environment:
- USER
- DISPLAY=${DISPLAY:?err}

services:
Expand Down

0 comments on commit a529cbd

Please sign in to comment.