Mount DRI In Native Mode
This commit is contained in:
parent
bdb027e1f2
commit
d602764f38
2
debian/client/common/DEBIAN/postinst
vendored
2
debian/client/common/DEBIAN/postinst
vendored
@ -2,4 +2,4 @@
|
||||
|
||||
set -e
|
||||
|
||||
MCPI_MODE='' MCPI_FEATURES='' MCPI_USERNAME='' docker-compose -f /usr/share/minecraft-pi/client/docker-compose.yml pull
|
||||
MCPI_FEATURES='' MCPI_USERNAME='' docker-compose -f /usr/share/minecraft-pi/client/docker-compose.yml pull
|
||||
|
@ -2,8 +2,5 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Enable VirGL
|
||||
export MCPI_MODE=native
|
||||
|
||||
# Launch Minecraft
|
||||
${DOCKER_COMPOSE} run --rm minecraft-pi
|
15
debian/client/native/usr/share/minecraft-pi/client/docker-compose.yml
vendored
Normal file
15
debian/client/native/usr/share/minecraft-pi/client/docker-compose.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
minecraft-pi:
|
||||
image: 'thebrokenrail/minecraft-pi:client'
|
||||
network_mode: 'host'
|
||||
volumes:
|
||||
- '/tmp/.X11-unix:/tmp/.X11-unix'
|
||||
- '~/.minecraft-pi:/root/.minecraft'
|
||||
devices:
|
||||
- '/dev/dri:/dev/dri'
|
||||
environment:
|
||||
- 'DISPLAY=unix${DISPLAY}'
|
||||
- 'MCPI_FEATURES=${MCPI_FEATURES}'
|
||||
- 'MCPI_USERNAME=${MCPI_USERNAME}'
|
||||
- 'MCPI_MODE=native'
|
@ -2,9 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Enable VirGL
|
||||
export MCPI_MODE=virgl
|
||||
|
||||
# Start VirGL
|
||||
virgl_test_server &
|
||||
VIRGL_PID="$!"
|
||||
|
@ -11,4 +11,4 @@ services:
|
||||
- 'DISPLAY=unix${DISPLAY}'
|
||||
- 'MCPI_FEATURES=${MCPI_FEATURES}'
|
||||
- 'MCPI_USERNAME=${MCPI_USERNAME}'
|
||||
- 'MCPI_MODE=${MCPI_MODE}'
|
||||
- 'MCPI_MODE=virgl'
|
Loading…
Reference in New Issue
Block a user