File tree 1 file changed +15
-10
lines changed
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change
1
+ ARG UBUNTU_DISTRO="22.04"
1
2
2
- # run the docker container as:
3
- #
4
- # sudo -E docker run --rm --gpus all -it --net=host carla:latest /bin/bash
3
+ FROM ubuntu:${UBUNTU_DISTRO}
5
4
6
- FROM nvidia/vulkan:1.1.121-cuda-10.1--ubuntu18.04
5
+ RUN packages='libsdl2-2.0 xserver-xorg libvulkan1 libomp5' \
6
+ && apt-get update \
7
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages \
8
+ && rm -rf /var/lib/apt/lists/*
7
9
8
- RUN apt-key adv --fetch-keys "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub"
9
-
10
- RUN packages='libsdl2-2.0 xserver-xorg libvulkan1 libomp5' && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages --no-install-recommends
10
+ # Install the `xdg-user-dir` tool so the Unreal Engine can use it to locate the user's Documents directory
11
+ RUN packages='xdg-user-dirs' \
12
+ && apt-get update \
13
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages \
14
+ && rm -rf /var/lib/apt/lists/*
11
15
12
16
RUN useradd -m carla
13
17
@@ -16,6 +20,7 @@ COPY --chown=carla:carla . /home/carla
16
20
USER carla
17
21
WORKDIR /home/carla
18
22
19
- # you can also run CARLA in offscreen mode with -RenderOffScreen
20
- # CMD /bin/bash CarlaUnreal.sh -RenderOffScreen
21
- CMD /bin/bash CarlaUnreal.sh
23
+ ENV SDL_VIDEODRIVER="x11"
24
+
25
+ # You can also run CARLA in offscreen mode with -RenderOffScreen
26
+ CMD ["/bin/bash" , "CarlaUnreal.sh" ]
You can’t perform that action at this time.
0 commit comments