feat: ~/bin/containers: containerized applis

This commit is contained in:
AngeD 2023-07-03 18:16:11 +02:00
parent 17c0085f52
commit 916fb70a69
11 changed files with 40 additions and 4 deletions

@ -1 +1 @@
Subproject commit c5b11f4fe780f4acd6ed0d58575d3cb7af3e893a Subproject commit 0e0600908d1ad5ac4992fa0ab578e23e9d9d6f37

@ -1 +1 @@
Subproject commit 3fde1587d0850d46b5a1473e5d1e59254e947496 Subproject commit c42a8f96d37be82cf32934c4351150d7736f93f5

View File

@ -14,7 +14,7 @@ export ZSH_COMPDUMP="$XDG_CACHE_HOME/.zcompdump-$ZSH_VERSION"
export LESSHISTFILE='-' export LESSHISTFILE='-'
path=("$HOME/bin" "$HOME/.local/bin" $path) path=("$HOME/bin" "$HOME/bin/containers" "$HOME/.local/bin" $path)
export EDITOR='nvim' export EDITOR='nvim'
export MAKEFLAGS='-j' export MAKEFLAGS='-j'

5
bin/containers/debian Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash -e
CRI=(podman)
${CRI[@]} run --rm -it -v "$PWD:/mnt" -w /mnt debian:12-slim

15
bin/containers/gui Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash -e
CRI=(podman)
${CRI[@]} run --rm --name minecraft \
--device /dev/dri/ \
-e DISPLAY \
-e XDG_RUNTIME_DIR \
-v /dev/shm:/dev/shm \
-v /tmp/.X11-unix/:/tmp/.X11-unix/ \
-v "$XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR" \
-v "home:/app/" \
-it \
git.maby.dev/ange/docker-gui:0.1 \
bash

16
bin/containers/torbrowser Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash -e
CRI=(podman)
mkdir -p "/tmp/torbrowser/"
${CRI[@]} run --rm --name torbrowser \
--userns=keep-id \
--device /dev/dri/ \
-e DISPLAY \
-e XDG_RUNTIME_DIR \
-v /dev/shm:/dev/shm \
-v /tmp/.X11-unix/:/tmp/.X11-unix/ \
-v "$XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR" \
-v "/tmp/torbrowser/:/app/" \
git.maby.dev/ange/docker-torbrowser:0.1

View File

@ -70,7 +70,7 @@ reload_bar() {
} }
display() { display() {
${DISPLAYCMD[@]} "$crypto | $cpu | $memory | $vol | $wlp | $bat | $time" "${DISPLAYCMD[@]}" "$crypto | $cpu | $memory | $vol | $wlp | $bat | $time"
} }
# SIGNALING # SIGNALING