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"

View file

@ -0,0 +1,18 @@
FROM registry.fedoraproject.org/fedora-toolbox:37
RUN dnf update -y && dnf clean packages
RUN dnf install -y fish htop nano firejail && dnf clean packages
RUN dnf install -y libnotify nss && dnf clean packages
RUN dnf install -y --allowerasing bash bc curl diffutils dnf-plugins-core findutils gnupg2 less lsof ncurses passwd pinentry procps-ng shadow-utils sudo time util-linux wget vte-profile \
&& dnf clean packages
RUN dnf install -y at-spi2-core gtk3 libXScrnSaver libXtst xdg-utils && dnf clean packages
RUN dnf install -y libglvnd-gles && dnf clean packages
RUN dnf install -y mesa-dri-drivers mesa-vulkan-drivers vulkan && dnf clean packages
RUN dnf install -y libva ibus ibus-gtk3 ibus-libs ibus-m17n ibus-setup libmpc libxkbcommon-x11 libxkbfile m17n-db m17n-lib python3-cairo python3-gobject python3-gobject-base python3-gobject-base-noarch setxkbmap xcb-util xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm xhost xmodmap xorg-x11-xinit xrdb cpp
RUN dnf install -y gcr3-base gcr3 gnome-keyring
RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
&& dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RUN dnf install -y libva-intel-driver gstreamer1-plugin-openh264 ffmpeg libva-utils
RUN dnf install -y dbus-glib pciutils-libs
RUN dnf -y install fuse
RUN dnf install -y firefox

View file

@ -0,0 +1,18 @@
FROM registry.fedoraproject.org/fedora-toolbox:38
RUN dnf update -y && dnf clean packages
RUN dnf install -y fish htop nano firejail && dnf clean packages
RUN dnf install -y libnotify nss && dnf clean packages
RUN dnf install -y --allowerasing bash bc curl diffutils dnf-plugins-core findutils gnupg2 less lsof ncurses passwd pinentry procps-ng shadow-utils sudo time util-linux wget vte-profile \
&& dnf clean packages
RUN dnf install -y at-spi2-core gtk3 libXScrnSaver libXtst xdg-utils && dnf clean packages
RUN dnf install -y libglvnd-gles && dnf clean packages
RUN dnf install -y mesa-dri-drivers mesa-vulkan-drivers vulkan && dnf clean packages
RUN dnf install -y libva ibus ibus-gtk3 ibus-libs ibus-m17n ibus-setup libmpc libxkbcommon-x11 libxkbfile m17n-db m17n-lib python3-cairo python3-gobject python3-gobject-base python3-gobject-base-noarch setxkbmap xcb-util xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm xhost xmodmap xorg-x11-xinit xrdb cpp
RUN dnf install -y gcr3-base gcr3 gnome-keyring
RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
&& dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RUN dnf install -y libva-intel-driver gstreamer1-plugin-openh264 ffmpeg libva-utils
RUN dnf install -y dbus-glib pciutils-libs
RUN dnf -y install fuse
RUN dnf install -y firefox

View file

@ -1,7 +0,0 @@
FROM registry.fedoraproject.org/fedora-toolbox:37
RUN dnf update -y && dnf clean packages
RUN dnf install -y fish htop nano firejail && dnf clean packages
RUN dnf install -y libnotify nss && dnf clean packages
RUN dnf install -y --allowerasing bash bc curl diffutils dnf-plugins-core findutils gnupg2 less lsof ncurses passwd pinentry procps-ng shadow-utils sudo time util-linux wget vte-profile \
&& dnf clean packages

View file

@ -1,4 +1,4 @@
FROM localhost/andersrh/fedora-toolbox/gui
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app
RUN wget https://download.binance.com/electron-desktop/linux/production/binance-x86_64-linux.rpm \

View file

@ -1,4 +1,4 @@
FROM localhost/andersrh/fedora-toolbox/gui
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app
ENV JAVA_TOOL_OPTIONS "-Dglass.gtk.uiScale=2"

View file

@ -1,4 +1,4 @@
FROM localhost/andersrh/fedora-toolbox/gui
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app

3
fedora-toolbox/build.37.sh Executable file
View file

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

View file

@ -1,4 +1,5 @@
#!/bin/sh
podman build -t andersrh/fedora-toolbox/base -f base.Dockerfile .
podman build -t andersrh/fedora-toolbox/gui -f gui.Dockerfile .
podman build -t andersrh/fedora-toolbox/base-gui -f base-gui.Dockerfile .
podman tag localhost/andersrh/fedora-toolbox/base-gui:latest localhost/andersrh/fedora-toolbox/base-gui:38
# podman build -t andersrh/fedora-toolbox/gui -f gui.Dockerfile .

View file

@ -1,4 +1,4 @@
FROM localhost/andersrh/fedora-toolbox/gui
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app

View file

@ -0,0 +1,7 @@
FROM localhost/andersrh/fedora-toolbox/base-gui:latest
#FROM registry.fedoraproject.org/fedora-toolbox:37
#WORKDIR /app
RUN dnf install -y firefox && dnf clean all

View file

@ -0,0 +1,7 @@
#!/bin/sh
APPNAME="firefox"
podman build -t andersrh/fedora-toolbox/$APPNAME -f Dockerfile .
distrobox create --image andersrh/fedora-toolbox/$APPNAME $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME

View file

@ -0,0 +1,5 @@
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app
RUN dnf install -y xwininfo yt-dlp neofetch dnstop

13
fedora-toolbox/general/build.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
APPNAME="general"
podman build -t andersrh/fedora-toolbox/$APPNAME -f Dockerfile .
#toolbox create --image andersrh/fedora-toolbox/$APPNAME $APPNAME
distrobox create --image andersrh/fedora-toolbox/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --bin /usr/bin/htop -ep ~/.local/bin/
distrobox enter $APPNAME -- distrobox-export --bin /usr/bin/xwininfo -ep ~/.local/bin/
distrobox enter $APPNAME -- distrobox-export --bin /usr/bin/ffmpeg -ep ~/.local/bin/
distrobox enter $APPNAME -- distrobox-export --bin /usr/bin/yt-dlp -ep ~/.local/bin/
distrobox enter $APPNAME -- distrobox-export --bin /usr/bin/neofetch -ep ~/.local/bin/
distrobox enter $APPNAME -- distrobox-export --bin /usr/bin/dnstop -ep ~/.local/bin/

View file

@ -0,0 +1,9 @@
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app
RUN wget https://download.live.ledger.com/latest/linux -O ledgerlive \
&& chmod +x ledgerlive
COPY ledgerlive.desktop /usr/share/applications/
COPY ledgerlive.png /usr/share/icons/
RUN ln -s /app/ledgerlive /usr/bin/ledgerlive

View file

@ -0,0 +1,9 @@
#!/bin/sh
APPNAME="ledgerlive"
podman build -t andersrh/fedora-toolbox/$APPNAME -f Dockerfile .
distrobox create --image andersrh/fedora-toolbox/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --bin /app/$APPNAME --export-path ~/.local/bin --extra-flags "--enable-features=WaylandWindowDecorations --ozone-platform=wayland"
cp ledgerlive.png ~/.local/share/icons/
cp ledgerlive.desktop ~/.local/share/applications/

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Type = Application
Version = 1.0
Name = Ledger Live
Comment = Ledger Live
Icon = ledgerlive
Exec = ledgerlive --enable-features=WaylandWindowDecorations --ozone-platform=wayland
Terminal = false

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -0,0 +1,6 @@
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app
RUN wget https://github.com/Eugeny/tabby/releases/download/v1.0.196/tabby-1.0.196-linux-x64.rpm -O app.rpm \
&& yum localinstall -y app.rpm && rm -f app.rpm && dnf clean all

7
fedora-toolbox/tabby/build.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
APPNAME="tabby"
podman build -t andersrh/fedora-toolbox/$APPNAME -f Dockerfile .
distrobox create --image andersrh/fedora-toolbox/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME --extra-flags "--enable-features=WaylandWindowDecorations --ozone-platform=wayland"

View file

@ -0,0 +1,6 @@
FROM localhost/andersrh/fedora-toolbox/base-gui
WORKDIR /app
RUN wget https://zoom.us/client/latest/zoom_x86_64.rpm -O app.rpm \
&& yum localinstall -y app.rpm && rm -f app.rpm && wget https://zoom.us/linux/download/pubkey?version=5-12-6 -O key.pub && rpm --import key.pub && rm -f key.pub && dnf clean all

7
fedora-toolbox/zoom/build.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
APPNAME="zoom"
podman build -t andersrh/fedora-toolbox/$APPNAME -f Dockerfile .
distrobox create --image andersrh/fedora-toolbox/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME

View file

@ -0,0 +1,18 @@
FROM registry.fedoraproject.org/fedora:37
RUN dnf update -y && dnf clean packages
RUN dnf install -y fish htop nano firejail && dnf clean packages
RUN dnf install -y libnotify nss && dnf clean packages
RUN dnf install -y --allowerasing bash bc curl diffutils dnf-plugins-core findutils gnupg2 less lsof ncurses passwd pinentry procps-ng shadow-utils sudo time util-linux wget vte-profile \
&& dnf clean packages
RUN dnf install -y at-spi2-core gtk3 libXScrnSaver libXtst xdg-utils && dnf clean packages
RUN dnf install -y libglvnd-gles && dnf clean packages
RUN dnf install -y mesa-dri-drivers mesa-vulkan-drivers vulkan && dnf clean packages
RUN dnf install -y libva ibus ibus-gtk3 ibus-libs ibus-m17n ibus-setup libmpc libxkbcommon-x11 libxkbfile m17n-db m17n-lib python3-cairo python3-gobject python3-gobject-base python3-gobject-base-noarch setxkbmap xcb-util xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm xhost xmodmap xorg-x11-xinit xrdb cpp
RUN dnf install -y gcr3-base gcr3 gnome-keyring
RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
&& dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RUN dnf install -y libva-intel-driver gstreamer1-plugin-openh264 ffmpeg libva-utils
RUN dnf install -y dbus-glib pciutils-libs
RUN dnf -y install fuse
RUN dnf install -y firefox

View file

@ -0,0 +1,18 @@
FROM registry.fedoraproject.org/fedora:38
RUN dnf update -y && dnf clean packages
RUN dnf install -y fish htop nano firejail && dnf clean packages
RUN dnf install -y libnotify nss && dnf clean packages
RUN dnf install -y --allowerasing bash bc curl diffutils dnf-plugins-core findutils gnupg2 less lsof ncurses passwd pinentry procps-ng shadow-utils sudo time util-linux wget vte-profile \
&& dnf clean packages
RUN dnf install -y at-spi2-core gtk3 libXScrnSaver libXtst xdg-utils && dnf clean packages
RUN dnf install -y libglvnd-gles && dnf clean packages
RUN dnf install -y mesa-dri-drivers mesa-vulkan-drivers vulkan && dnf clean packages
RUN dnf install -y libva ibus ibus-gtk3 ibus-libs ibus-m17n ibus-setup libmpc libxkbcommon-x11 libxkbfile m17n-db m17n-lib python3-cairo python3-gobject python3-gobject-base python3-gobject-base-noarch setxkbmap xcb-util xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm xhost xmodmap xorg-x11-xinit xrdb cpp
RUN dnf install -y gcr3-base gcr3 gnome-keyring
RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
&& dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RUN dnf install -y libva-intel-driver gstreamer1-plugin-openh264 ffmpeg libva-utils
RUN dnf install -y dbus-glib pciutils-libs
RUN dnf -y install fuse
RUN dnf install -y firefox

3
fedora/build.37.sh Executable file
View file

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

5
fedora/build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
podman build -t andersrh/fedora/base-gui -f base-gui.Dockerfile .
podman tag localhost/andersrh/fedora/base-gui:latest localhost/andersrh/fedora/base-gui:38
# podman build -t andersrh/fedora-toolbox/gui -f gui.Dockerfile .

View file

@ -0,0 +1,7 @@
FROM localhost/andersrh/fedora/base-gui:latest
#FROM registry.fedoraproject.org/fedora-toolbox:37
#WORKDIR /app
RUN dnf install -y firefox && dnf clean all

7
fedora/firefox/build.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
APPNAME="firefox"
podman build -t andersrh/fedora/$APPNAME -f Dockerfile .
distrobox create --image andersrh/fedora/$APPNAME $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME

8
fedora/hyper/Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM localhost/andersrh/fedora/base-gui
WORKDIR /app
RUN wget https://releases.hyper.is/download/rpm -O app.rpm \
&& yum localinstall -y app.rpm && rm -f app.rpm && dnf install -y dejavu-sans-mono-fonts && dnf clean all
COPY ./bin/fish_on_host /app/
RUN chmod +x /app/fish_on_host

3
fedora/hyper/bin/fish_on_host Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
bash -c '/usr/bin/distrobox-host-exec fish -l'

7
fedora/hyper/build.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
APPNAME="hyper"
podman build -t andersrh/fedora/$APPNAME -f Dockerfile .
distrobox create --image andersrh/fedora/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME --extra-flags "--enable-features=WaylandWindowDecorations --ozone-platform=wayland"

5
fedora/wine/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM localhost/andersrh/fedora/base-gui
WORKDIR /app
RUN dnf install -y wine && dnf clean all

6
fedora/wine/build.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
APPNAME="wine"
podman build -t andersrh/fedora/$APPNAME -f Dockerfile .
distrobox create --image andersrh/fedora/$APPNAME --home ~/containers/$APPNAME/ $APPNAME

View file

@ -0,0 +1,6 @@
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt upgrade -y && apt clean
RUN apt install -y fish htop nano firejail bash apt-utils bc curl dialog diffutils findutils gnupg2 less libnss-myhostname libvte-2.91-common libvte-common lsof ncurses-base passwd pinentry-curses procps sudo time wget util-linux libegl1-mesa libgl1-mesa-glx libvulkan1 mesa-vulkan-drivers libva2 libva-wayland2 libva-glx2 libva-drm2 libva-x11-2 intel-media-va-driver va-driver-all && apt clean
RUN apt install -y gconf2 gconf-service libnotify4 libappindicator1 libnss3 libsecret-1-dev gnome-keyring && apt clean
RUN apt install -y libasound2 libgles2 && apt clean

5
ubuntu/build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
podman build -t andersrh/ubuntu/base-gui -f base-gui.Dockerfile .
podman tag localhost/andersrh/ubuntu/base-gui:latest localhost/andersrh/ubuntu/base-gui:22.04
# podman build -t andersrh/fedora-toolbox/gui -f gui.Dockerfile .

View file

@ -0,0 +1,5 @@
FROM localhost/andersrh/ubuntu/base-gui
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /app
RUN apt install -y hardinfo && apt clean

7
ubuntu/hardinfo/build.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
APPNAME="hardinfo"
podman build -t andersrh/ubuntu/$APPNAME -f Dockerfile .
distrobox create --image andersrh/ubuntu/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --app $APPNAME