add cachyos general
This commit is contained in:
parent
f44104c0cb
commit
db2e555998
8 changed files with 195 additions and 0 deletions
18
containers/cachyos/general/Dockerfile
Normal file
18
containers/cachyos/general/Dockerfile
Normal 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
|
||||
9
containers/cachyos/general/build.sh
Executable file
9
containers/cachyos/general/build.sh
Executable 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
3
containers/general/bin/cointop
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
flatpak run com.github.miguelmota.Cointop
|
||||
3
containers/general/bin/defaulthome
Executable file
3
containers/general/bin/defaulthome
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
export HOME="/var/home/anders"
|
||||
3
containers/general/bin/fakehome
Executable file
3
containers/general/bin/fakehome
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
export HOME="/var/home/anders/containers/general"
|
||||
23
containers/general/bin/ffmpeg
Executable file
23
containers/general/bin/ffmpeg
Executable 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
3
containers/general/bin/hostex
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
distrobox-host-exec $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue