... | ... | @@ -73,18 +73,20 @@ This will create an image tagged `devenv-custom:latest`. You can retag your imag |
|
|
|
|
|
## Running the image
|
|
|
|
|
|
Simple case, only console is available
|
|
|
Only terminal development
|
|
|
|
|
|
```sh
|
|
|
podman run --cpus 4 -m 8gb -it localhost/devenv-custom:latest
|
|
|
```
|
|
|
|
|
|
GUI is available
|
|
|
GUI with X11/Wayland development
|
|
|
|
|
|
```sh
|
|
|
podman run --cpus 4 -m 8gb -e PULSE_SERVER=/run/user/$UID/pulse/native -e DISPLAY=:0 -e XAUTHORITY=$XAUTHORITY -e XDG_RUNTIME_DIR=/run/user/$UID --volume /tmp/.X11-unix/:/tmp/.X11-unix/ --volume /run/user/$UID:/run/user/$UID --volume "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY":/tmp/wayland-0:z --device /dev/dri/:/dev/dri/:rwm --volume /run/user/$UID/bus:/tmp/bus:z --ipc host -it localhost/devenv-custom:latest
|
|
|
```
|
|
|
|
|
|
The extra volumes and environment variables are the sockets and their paths to X11, Wayland, Pulseaudio, dbus and the DirectRenderingInterface(dri, graphical acceleration), so that GUIs can work properly.
|
|
|
|
|
|
## Persistent storage in /root/volume
|
|
|
|
|
|
```sh
|
... | ... | |