add cachyos general

This commit is contained in:
Anders Rytter Hansen 2023-11-05 15:30:06 +01:00
commit db2e555998
8 changed files with 195 additions and 0 deletions

View file

@ -0,0 +1,18 @@
FROM ghcr.io/andersrh/containers/cachyos/base-gui:main
WORKDIR /app
USER build
RUN yay -Sy --noconfirm vscodium-bin
USER root
RUN pacman -Sy --noconfirm yt-dlp
COPY containers/general/bin/* /usr/local/bin/
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/flatpak
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/podman
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/nvtop
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/distrobox
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/uksmdstats
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/kerver

View file

@ -0,0 +1,9 @@
#!/bin/sh
APPNAME="general"
podman build -t andersrh/cachyos/$APPNAME -f cachyos.Dockerfile .
podman rm -f $APPNAME-cachyos
distrobox create --image andersrh/cachyos/$APPNAME --home ~/containers/$APPNAME/ $APPNAME-cachyos
distrobox enter $APPNAME-cachyos -- distrobox-export --app codium

3
containers/general/bin/cointop Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
flatpak run com.github.miguelmota.Cointop

View file

@ -0,0 +1,3 @@
#!/bin/sh
export HOME="/var/home/anders"

View file

@ -0,0 +1,3 @@
#!/bin/sh
export HOME="/var/home/anders/containers/general"

23
containers/general/bin/ffmpeg Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
#if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="podman run -it --rm -v \"$(pwd):$(pwd)\" --workdir=\"$(pwd)\" docker.io/linuxserver/ffmpeg "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
#else
# /usr/local/bin/ffmpeg "$@"
#fi

3
containers/general/bin/hostex Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
distrobox-host-exec $@