From b457d3af216c6c70332ff795c852095c17834d9c Mon Sep 17 00:00:00 2001 From: Christian Geller Date: Mon, 5 Feb 2024 23:41:00 +0100 Subject: [PATCH] enable gui --- .github/actions/evaluate-scenario/files/template.yml | 4 ++++ .github/actions/evaluate-scenario/scripts/setup-carlos.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/actions/evaluate-scenario/files/template.yml b/.github/actions/evaluate-scenario/files/template.yml index a5022a3..c6ad179 100644 --- a/.github/actions/evaluate-scenario/files/template.yml +++ b/.github/actions/evaluate-scenario/files/template.yml @@ -9,6 +9,10 @@ services: count: 1 capabilities: [gpu] privileged: True + environment: + DISPLAY: $DISPLAY + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix image: $SIMULATOR_IMAGE command: bash -ic './CarlaUE4.sh -nosound $SIMULATOR_FLAGS 2>/dev/null' diff --git a/.github/actions/evaluate-scenario/scripts/setup-carlos.sh b/.github/actions/evaluate-scenario/scripts/setup-carlos.sh index 57ee80d..5eb9ea2 100755 --- a/.github/actions/evaluate-scenario/scripts/setup-carlos.sh +++ b/.github/actions/evaluate-scenario/scripts/setup-carlos.sh @@ -20,4 +20,5 @@ echo "$(cat $COMPOSE_FILE_PATH)" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT # start simulator +xhost +local: docker compose -f $COMPOSE_FILE_PATH up -d carla-simulator