add cachyos containers
This commit is contained in:
parent
61fa301aff
commit
31fb5991ff
7 changed files with 444 additions and 0 deletions
41
containers/cachyos/base-gui.Dockerfile
Normal file
41
containers/cachyos/base-gui.Dockerfile
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
FROM docker.io/cachyos/cachyos-v3
|
||||
|
||||
WORKDIR /app
|
||||
COPY etc /etc
|
||||
|
||||
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
|
||||
RUN pacman -Sy --noconfirm yay bash bc curl diffutils findutils gnupg less lsof ncurses pinentry procps-ng shadow sudo time util-linux wget vte-common
|
||||
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 mesa opengl-driver vulkan-intel vulkan-radeon
|
||||
RUN pacman -Sy --noconfirm nss atk cups gtk3 alsa-lib
|
||||
RUN pacman -Sy --noconfirm xdg-utils
|
||||
RUN pacman -Sy --noconfirm nano ibus dbus-glib
|
||||
RUN pacman -Sy --noconfirm ttf-dejavu noto-fonts ttf-liberation
|
||||
RUN pacman -Sy --noconfirm nvidia-utils
|
||||
RUN pacman -Sy --noconfirm squashfs-tools python-pyasn1 python-pip qt6-wayland
|
||||
|
||||
RUN pacman -Sy --noconfirm opencl-nvidia
|
||||
RUN pacman -Sy --noconfirm libxss
|
||||
RUN pacman -Sy --noconfirm xorg-xwininfo python-setuptools python-pyaes python-rsa python-certifi
|
||||
RUN pip3 install pip2pkgbuild python-binance pyside6 --break-system-packages
|
||||
RUN chown -R build /app
|
||||
RUN mkdir /app/sqlalchemy && chown -R build /app/sqlalchemy
|
||||
RUN mkdir /app/telethon && chown -R build /app/telethon
|
||||
USER build
|
||||
# python-binance sqlalchemy telethon pyside6
|
||||
|
||||
WORKDIR /app/sqlalchemy
|
||||
RUN pip2pkgbuild sqlalchemy
|
||||
RUN makepkg -si --noconfirm
|
||||
|
||||
WORKDIR /app/telethon
|
||||
RUN pip2pkgbuild telethon
|
||||
RUN makepkg -si --noconfirm
|
||||
|
||||
RUN rm -rf /app/*
|
||||
USER root
|
||||
4
containers/cachyos/build.sh
Executable file
4
containers/cachyos/build.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
podman pull docker.io/cachyos/cachyos-v3
|
||||
podman build -t andersrh/cachyos/base-gui -f base-gui.Dockerfile .
|
||||
115
containers/cachyos/etc/pacman.conf__custom
Normal file
115
containers/cachyos/etc/pacman.conf__custom
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
#
|
||||
# /etc/pacman.conf
|
||||
#
|
||||
# See the pacman.conf(5) manpage for option and repository directives
|
||||
|
||||
#
|
||||
# GENERAL OPTIONS
|
||||
#
|
||||
[options]
|
||||
# The following paths are commented out with their default values listed.
|
||||
# If you wish to use different paths, uncomment and update the paths.
|
||||
#RootDir = /
|
||||
#DBPath = /var/lib/pacman/
|
||||
#CacheDir = /var/cache/pacman/pkg/
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
#HookDir = /etc/pacman.d/hooks/
|
||||
HoldPkg = pacman glibc
|
||||
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
#IgnorePkg =
|
||||
#IgnorePkg =
|
||||
#IgnoreGroup =
|
||||
|
||||
#NoUpgrade =
|
||||
#NoExtract =
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
Color
|
||||
ILoveCandy
|
||||
#NoProgressBar
|
||||
#CheckSpace
|
||||
VerbosePkgLists
|
||||
DisableDownloadTimeout
|
||||
ParallelDownloads = 10
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
#RemoteFileSigLevel = Required
|
||||
|
||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||
# keyring can then be populated with the keys of all official Arch Linux
|
||||
# packagers with `pacman-key --populate archlinux`.
|
||||
|
||||
#
|
||||
# REPOSITORIES
|
||||
# - can be defined here or included from another file
|
||||
# - pacman will search repositories in the order defined here
|
||||
# - local/custom mirrors can be added here or in separate files
|
||||
# - repositories listed first will take precedence when packages
|
||||
# have identical names, regardless of version number
|
||||
# - URLs will have $repo replaced by the name of the current repo
|
||||
# - URLs will have $arch replaced by the name of the architecture
|
||||
#
|
||||
# Repository entries are of the format:
|
||||
# [repo-name]
|
||||
# Server = ServerName
|
||||
# Include = IncludePath
|
||||
#
|
||||
# The header [repo-name] is crucial - it must be present and
|
||||
# uncommented to enable the repo.
|
||||
#
|
||||
|
||||
# The testing repositories are disabled by default. To enable, uncomment the
|
||||
# repo name header and Include lines. You can add preferred servers immediately
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
#[testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[cachyos-v3]
|
||||
Include = /etc/pacman.d/cachyos-v3-mirrorlist
|
||||
[cachyos-community-v3]
|
||||
Include = /etc/pacman.d/cachyos-v3-mirrorlist
|
||||
[cachyos-extra-v3]
|
||||
Include = /etc/pacman.d/cachyos-v3-mirrorlist
|
||||
[cachyos-core-v3]
|
||||
Include = /etc/pacman.d/cachyos-v3-mirrorlist
|
||||
[cachyos]
|
||||
Include = /etc/pacman.d/cachyos-mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# If you want to run 32 bit applications on your x86_64 system,
|
||||
# enable the multilib repositories as required here.
|
||||
|
||||
#[multilib-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
#[custom]
|
||||
#SigLevel = Optional TrustAll
|
||||
#Server = file:///home/custompkgs
|
||||
|
||||
10
containers/cachyos/tradingview/Dockerfile
Normal file
10
containers/cachyos/tradingview/Dockerfile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
FROM ghcr.io/andersrh/containers/cachyos/base-gui
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
USER build
|
||||
RUN git clone https://aur.archlinux.org/tradingview.git \
|
||||
&& cd tradingview \
|
||||
&& makepkg -si --noconfirm \
|
||||
&& rm -rf /app/*
|
||||
USER root
|
||||
8
containers/cachyos/tradingview/build.sh
Executable file
8
containers/cachyos/tradingview/build.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
APPNAME="tradingview"
|
||||
|
||||
podman build -t andersrh/cachyos/$APPNAME -f Dockerfile .
|
||||
podman rm -f $APPNAME
|
||||
distrobox create --image ghcr.io/andersrh/containers/cachyos/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
|
||||
distrobox enter $APPNAME -- distrobox-export --app $APPNAME --extra-flags "--enable-features=WaylandWindowDecorations --ozone-platform=wayland"
|
||||
Loading…
Add table
Add a link
Reference in a new issue