... | @@ -68,13 +68,13 @@ podman build -t devenv-custom:latest . |
... | @@ -68,13 +68,13 @@ podman build -t devenv-custom:latest . |
|
Simple case, only console is available
|
|
Simple case, only console is available
|
|
|
|
|
|
```sh
|
|
```sh
|
|
podman run --cpus 4 -m 8gb --volume v rtctk:/root/volume --ipc host -it localhost/devenv-custom:latest
|
|
podman run --cpus 4 -m 8gb -it localhost/devenv-custom:latest
|
|
```
|
|
```
|
|
|
|
|
|
GUI is available
|
|
GUI is available
|
|
|
|
|
|
```sh
|
|
```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 --volume v rtctk:/root/volume --ipc host -it localhost/devenv-custom:latest
|
|
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
|
|
```
|
|
```
|
|
|
|
|
|
## Persistent storage in /root/volume
|
|
## Persistent storage in /root/volume
|
... | @@ -85,6 +85,18 @@ podman volume create rtctk |
... | @@ -85,6 +85,18 @@ podman volume create rtctk |
|
|
|
|
|
and add the `--volume v rtctk:/root/volume` to the podman run command
|
|
and add the `--volume v rtctk:/root/volume` to the podman run command
|
|
|
|
|
|
|
|
Simple case, only console is available
|
|
|
|
|
|
|
|
```sh
|
|
|
|
podman run --cpus 4 -m 8gb --volume v rtctk:/root/volume --ipc host -it localhost/devenv-custom:latest
|
|
|
|
```
|
|
|
|
|
|
|
|
GUI is available
|
|
|
|
|
|
|
|
```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 --volume v rtctk:/root/volume --ipc host -it localhost/devenv-custom:latest
|
|
|
|
```
|
|
|
|
|
|
## VSCode
|
|
## VSCode
|
|
|
|
|
|
You can use this image with VSCode.
|
|
You can use this image with VSCode.
|
... | | ... | |