Skip to content

Commit aa003b8

Browse files
committed
implement hardware rendering (fixes #159)
Signed-off-by: dirksavage88 <dirksavage88@gmail.com>
1 parent ad020b8 commit aa003b8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

space_robots/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ARG DEBIAN_FRONTEND=noninteractive
4848
# the cache won't make it into the built image but will be maintained between steps.
4949
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
5050
--mount=type=cache,target=/var/lib/apt,sharing=locked \
51-
sudo apt-get update -y && sudo apt-get install -y python3-rosinstall-generator
51+
sudo apt-get update -y && sudo apt-get install -y python3-rosinstall-generator libgl1-mesa-glx libgl1-mesa-dri
5252

5353
# TODO(anyone): remove demo-pkgs.txt, no packages left after exclusions
5454
# Generate repos file for demo dependencies, excluding packages from Space ROS core.
@@ -83,7 +83,7 @@ RUN cd mongo-cxx-driver-r3.6.7/build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCM
8383
# Get the source for the dependencies
8484
# RUN vcs import src < /tmp/demo_generated_pkgs.repos
8585
COPY --chown=${USERNAME}:${USERNAME} demo_manual_pkgs.repos /tmp/
86-
RUN vcs import src < /tmp/demo_manual_pkgs.repos && /bin/bash -c 'source "${SPACEROS_DIR}/install/setup.bash"'
86+
RUN vcs import src < /tmp/demo_manual_pkgs.repos && /bin/bash -c 'source "${SPACEROS_DIR}/install/setup.bash"'
8787

8888
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
8989
--mount=type=cache,target=/var/lib/apt,sharing=locked \

space_robots/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ CONTAINER_NAME="$(tr '/' '_' <<< "$IMG_NAME")"
1313

1414
# Start the container
1515
docker run --rm -it --name $CONTAINER_NAME --network host \
16+
--volume=/tmp/.X11-unix:/tmp/.X11-unix\
17+
--device=/dev/dri:/dev/dri \
1618
-e DISPLAY -e TERM -e QT_X11_NO_MITSHM=1 $IMG_NAME

0 commit comments

Comments
 (0)