diff --git a/docker-compose.yml b/docker-compose.yml index 9e0e6a1..b1cbc86 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + privileged: true \ No newline at end of file diff --git a/setup.sh b/setup.sh index 26b7686..9075d02 100644 --- a/setup.sh +++ b/setup.sh @@ -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 \ No newline at end of file