From c7bb749d3d80a1a3ec0e5caf5e57c7472bb519bc Mon Sep 17 00:00:00 2001 From: Aric Renzo Date: Mon, 17 Sep 2018 10:29:25 -0400 Subject: [PATCH] Updating docker build instructions. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b4cbbed..2b00c29 100644 --- a/README.md +++ b/README.md @@ -193,9 +193,14 @@ open cool-retro-term.app Clone the primary repository with the `--recursive` flag, and perform a Docker build. Docker will automatically compile the code inside a Docker container. To run the docker container, you need to mount X-Server resources and your video card inside the Docker container so that Docker can initiate the GUI and successfully start cool-retro-term with hardware acceleration: ```sh +#Git clone git clone --recursive https://github.com/Swordfish90/cool-retro-term.git + +#Docker Build docker build -t cool-retro-term:1 -docker run -it --privileged --rm -e DISPLAY=$DISPLAY -e XDG_RUNTIME_DIR=/run/user/1000 -e XAUTHORITY=$XAUTHORITY -v /run/user/1000:/run/user/1000 -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/dri:/dev/dri cool-retro-term:1 + +#Run the built image. +docker run -it --privileged --rm -e DISPLAY=$DISPLAY -e XDG_RUNTIME_DIR=/run/user/1000 -e XAUTHORITY=$XAUTHORITY -v /run/user/1000:/run/user/1000 -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/dri:/dev/dri -v ~/.local/share/cool-retro-term:/home/user/.local/share/cool-retro-term cool-retro-term:1 ```