Newer
Older
glx-docker-headless-gpu / server.sh
#!/bin/bash
if [ ! -e ./cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb ]; then
  wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb
fi
if [ ! -e ./AdditionalMaps_0.9.10.1.tar.gz ]; then
  wget https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/AdditionalMaps_0.9.10.1.tar.gz
fi

docker build -t sim . && \
# docker run --device=/dev/tty0:rw -it --rm --gpus all \
docker run --privileged -it --rm --gpus all \
  -p 6080:8081 \
  -p 2000-2002:2000-2002 \
  -v /dev/shm:/dev/shm \
  -e NVIDIA_VISIBLE_DEVICES=all \
  -e NVIDIA_DRIVER_CAPABILITIES=all \
  -e QT_X11_NO_MITSHM=1 \
  -e SDL_VIDEODRIVER=x11 \
  -e VNCPASS=pass \
  -e RESOLUTION=1920x1080 \
  --shm-size=1gb \
  --net bridge \
  --name sim sim