changed base and new apps

This commit is contained in:
Anders Rytter Hansen 2023-04-28 15:54:52 +02:00
commit f8ed440ee8
42 changed files with 299 additions and 13 deletions

View file

@ -0,0 +1,22 @@
FROM docker.io/library/archlinux
WORKDIR /app
RUN pacman -Syu --noconfirm --needed git base-devel
RUN useradd -m --shell=/bin/false build && usermod -L build
RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN chown -R build /app
USER build
RUN git clone https://aur.archlinux.org/yay.git \
&& cd yay \
&& makepkg -si --noconfirm \
&& rm -rf /app/*
USER root
RUN pacman -Sy --noconfirm bash bc curl diffutils findutils gnupg less lsof ncurses pinentry procps-ng shadow sudo time util-linux wget vte-common
RUN pacman -Sy --noconfirm mesa opengl-driver vulkan-intel vulkan-radeon
RUN pacman -Sy --noconfirm fish htop
RUN pacman -Sy --noconfirm libva libva-intel-driver libva-mesa-driver libva-utils intel-media-driver
RUN pacman -Sy --noconfirm nss atk cups gtk3 alsa-lib
RUN pacman -Sy --noconfirm xdg-utils
RUN pacman -Sy --noconfirm nano ibus dbus-glib

3
archlinux/build.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
podman build -t andersrh/archlinux/base-gui -f base-gui.Dockerfile .

View file

@ -0,0 +1,5 @@
FROM andersrh/archlinux/base-gui
WORKDIR /app
#RUN yay -S --noconfirm tradingview

12
archlinux/lbry/build.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
APPNAME="lbry"
podman build -t andersrh/archlinux/$APPNAME -f Dockerfile .
podman rm -f $APPNAME
distrobox create --image andersrh/archlinux/$APPNAME --init --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- yay -S --noconfirm lbry-desktop-bin
podman commit $APPNAME andersrh/archlinux/$APPNAME
podman rm -f $APPNAME
distrobox create --image andersrh/archlinux/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME

View file

@ -0,0 +1,5 @@
FROM andersrh/archlinux/base-gui
WORKDIR /app
#RUN yay -S --noconfirm tradingview

12
archlinux/tradingview/build.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
APPNAME="tradingview"
podman build -t andersrh/archlinux/$APPNAME -f Dockerfile .
podman rm -f $APPNAME
distrobox create --image andersrh/archlinux/$APPNAME --init --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- yay -S --noconfirm tradingview
podman commit $APPNAME andersrh/archlinux/$APPNAME
podman rm -f $APPNAME
distrobox create --image andersrh/archlinux/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME --extra-flags "--enable-features=WaylandWindowDecorations --ozone-platform=wayland"