Skip to content

Commit f7a75ec

Browse files
committed
Make sure to set up device on mathicsscript.
1 parent 2cca0c0 commit f7a75ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

script/dmathicsscript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ touch $XAUTH
2525
TAG=${TAG:-latest}
2626
MATHICS_IMAGE=${MATHICS_IMAGE:-mathicsorg/mathics:${TAG}}
2727

28+
DEVICE=''
29+
if [[ -r /dev/dri ]]; then
30+
DEVICE='--device=/dev/dri:/dev/dri'
31+
fi
32+
2833
$DOCKER run -it \
2934
--rm \
3035
--env "DISPLAY=$DISPLAY" \
@@ -33,5 +38,6 @@ $DOCKER run -it \
3338
--interactive \
3439
--network=host \
3540
--volume "/tmp:/usr/src/app/data" \
41+
$DEVICE \
3642
$MATHICS_IMAGE \
3743
--mode cli -- $style $@

0 commit comments

Comments
 (0)