Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
imagidan committed Feb 21, 2024
1 parent fe9c640 commit 92260f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 1 addition & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ services:
- /tmp/.Xauthority:/tmp/.Xauthority:rw
environment:
- QT_X11_NO_MITSHM=1
- XAUTHORITY=$XAUTHORITY
- ROS_DOMAIN_ID=96
command: sleep infinity
network_mode: "host"
privileged: true
deploy:
resources:
reservations:
devices:
- capabilities: ["nvidia-compute"]
driver: nvidia
privileged: true
2 changes: 0 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
xhost +

if [ ! -f .env ]; then
# Get the value of DISPLAY variable
DISPLAY_VALUE=$(echo $DISPLAY)

# Add DISPLAY variable to .env file
echo "DISPLAY=$DISPLAY_VALUE" >> .env

echo "DISPLAY variable added to .env file with value: $DISPLAY_VALUE"
else
echo ".env file already exists."
fi

0 comments on commit 92260f9

Please sign in to comment.