A load of stuff

This commit is contained in:
2026-02-20 13:38:05 +00:00
parent 7dc47faeab
commit 3db30fee6e
4 changed files with 85 additions and 6 deletions

37
README.md Normal file
View File

@@ -0,0 +1,37 @@
# Most linux distros
## To build the container
`docker build -t vulkan-dev .`
## To run the container
```sh
sudo docker run -it \
--device /dev/dri \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "$(pwd)":/workspace \
vulkan-dev
```
## To enable X11 access:
`xhost +local:docker`
# Windows
## To build the container (in powershell)
`docker build -t vulkan-dev .`
## To run it
### Option one with WSLg (recommended)
```sh
docker run -it \
-v "$(pwd)":/workspace \
vulkan-dev
```
### Option two with VcXsrv
Set display in powershell:
`$env:DISPLAY="host.docker.internal:0.0"`
Run container:
```sh
docker run -it `
-e DISPLAY=host.docker.internal:0.0 `
-v ${PWD}:/workspace `
vulkan-dev
```
Not working