2020-10-16 15:39:04 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Start VirGL
|
2020-12-10 17:16:44 -05:00
|
|
|
virgl_test_server > /tmp/minecraft-pi/virgl.log 2>&1 &
|
|
|
|
VIRGL_PID=$!
|
2020-10-16 15:39:04 -04:00
|
|
|
|
|
|
|
# Launch Minecraft
|
2020-12-10 17:16:44 -05:00
|
|
|
set +e
|
2021-01-30 21:32:20 -05:00
|
|
|
docker-compose -f "${DOCKER_COMPOSE_YML}" run --rm minecraft-pi
|
2020-12-10 17:16:44 -05:00
|
|
|
RET=$?
|
|
|
|
set -e
|
2020-10-16 15:39:04 -04:00
|
|
|
|
|
|
|
# Kill VirGL
|
2021-02-08 22:52:39 -05:00
|
|
|
kill ${VIRGL_PID} > /dev/null 2>&1
|
2020-10-16 15:39:04 -04:00
|
|
|
|
2020-12-10 17:16:44 -05:00
|
|
|
exit ${RET}
|