Skip to content
GitLab
Explore
Sign in
Admin message
A maintenance window for GitLab is scheduled on Wednesday, September 16th, from 08:00 to 12:00.
Changes
Page history
Update ELT Containers on Podman
authored
Oct 25, 2023
by
Arturo Hoffstadt
Hide whitespace changes
Inline
Side-by-side
ELT-Containers-on-Podman.md
View page @
f60dba53
...
@@ -144,7 +144,15 @@ podman build -t devenv-custom:latest .
...
@@ -144,7 +144,15 @@ podman build -t devenv-custom:latest .
## Running the image
## Running the image
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
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
```
```
...
@@ -152,4 +160,11 @@ podman run --cpus 4 -m 8gb -e PULSE_SERVER=/run/user/$UID/pulse/native -e DISPLA
...
@@ -152,4 +160,11 @@ podman run --cpus 4 -m 8gb -e PULSE_SERVER=/run/user/$UID/pulse/native -e DISPLA
```
sh
```
sh
podman volume create rtctk
podman volume create rtctk
```
```
\ No newline at end of file
and add the
`--volume v rtctk:/root/volume`
to the podman run command
## VSCode
You can use this image with VSCode.
Install the Remote extension. It will automatically detect available podman containers.
\ No newline at end of file