Files
my-fedora/Containerfile
qpismont a3e826358a
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/cron/ci Pipeline was successful
Enhance Containerfile: Update Yaak installation to fetch the latest version from GitHub
2025-11-05 11:25:37 +01:00

109 lines
4.3 KiB
Docker

FROM registry.fedoraproject.org/fedora-bootc:43
#Ajout du dépot vscode
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc \
&& echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | tee /etc/yum.repos.d/vscode.repo > /dev/null
#Ajout du dépot mullvad
RUN curl -fsSL https://repository.mullvad.net/rpm/stable/mullvad.repo -o /etc/yum.repos.d/mullvad.repo
#Install de gnome avec support hardware + Podman + Cups + Vulkan driver + Plymouth + dev tools + divers utilitaires
RUN dnf install -y \
@gnome-desktop \
@hardware-support \
@development-tools \
@multimedia \
glibc-langpack-fr \
langpacks-core-fr \
langpacks-fr \
code \
flatpak \
buildah \
podman \
podman-docker \
podman-compose \
fuse-overlayfs \
cups \
cups-pdf \
jq \
plymouth \
plymouth-system-theme \
plymouth-plugin-label \
plymouth-plugin-fade-throbber \
wget \
mullvad-vpn \
kernel-modules \
kernel-modules-extra \
SDL2 \
evtest \
libusb \
usbutils \
gstreamer1 \
gstreamer1-plugins-base \
gstreamer1-vaapi \
ffmpeg \
xorg-x11-server-Xwayland \
&& dnf remove -y gnome-software gnome-software-rpm-ostree gnome-system-monitor showtime decibels snapshot PackageKit PackageKit-gstreamer-plugin PackageKit-command-not-found || true \
&& dnf clean all \
&& rm -rf /var/cache/dnf
#Installation de Yaak (dernière version depuis GitHub)
RUN YAAK_URL=$(curl -s https://api.github.com/repos/mountain-loop/yaak/releases/latest | jq -r '.assets[] | select(.name | contains("x86_64") and endswith(".rpm")) | .browser_download_url') \
&& wget "$YAAK_URL" -O /tmp/yaak.rpm \
&& dnf install -y /tmp/yaak.rpm \
&& rm -f /tmp/yaak.rpm
#Installation de Filen Desktop
RUN wget https://cdn.filen.io/@filen/desktop/release/latest/Filen_linux_x86_64.rpm -O /tmp/filen.rpm \
&& dnf install -y /tmp/filen.rpm \
&& rm -f /tmp/filen.rpm
#Installation de starship
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y
#Installation des polices FiraMono Nerd Font
RUN mkdir -p /usr/share/fonts/firamono-nerd && \
cd /usr/share/fonts/firamono-nerd && \
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/FiraMono.zip && \
unzip FiraMono.zip && \
rm FiraMono.zip && \
fc-cache -fv
#Configuration de starship pour tous les utilisateurs
RUN echo 'eval "$(starship init bash)"' >> /etc/bashrc
#Configuration par défaut de starship pour tous les utilisateurs
RUN mkdir -p /etc/skel/.config && \
starship preset nerd-font-symbols -o /etc/skel/.config/starship.toml
#Langue FR par défaut + Fuse userns + Timezone Paris
RUN echo "LANG=fr_FR.UTF-8" > /etc/locale.conf \
&& echo "KEYMAP=fr" > /etc/vconsole.conf \
&& ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime \
&& echo "user.max_user_namespaces=28633" > /etc/sysctl.d/userns.conf
#Configuration des fenêtres gnome pour avoir les btns style windows
RUN mkdir -p /etc/dconf/db/local.d /etc/dconf/profile && \
printf "[org/gnome/desktop/wm/preferences]\nbutton-layout=':minimize,maximize,close'\n" > /etc/dconf/db/local.d/02-window-buttons && \
printf "user-db:user\nsystem-db:local\n" > /etc/dconf/profile/user && \
dconf update 2>/dev/null || true
#Activation du module xpad pour support manette xbox
RUN echo "xpad" > /etc/modules-load.d/xpad.conf
#Configuration gstreamer pour désactiver tous les drivers vaapi par défaut (évite des conflits avec certains drivers propriétaires)
RUN echo "GST_VAAPI_ALL_DRIVERS=0" >> /etc/environment
# Ajout de flathub avec des apps par défaut
RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo \
&& flatpak install -y --system flathub runtime/org.gnome.Platform/x86_64/49 \
&& flatpak install -y --system flathub io.github.kolunmi.Bazaar
#Définir le target graphique par défaut
RUN systemctl set-default graphical.target
#Activation des services + Desactivation de bootc-update automatique
RUN systemctl preset-all && \
systemctl enable gdm.service NetworkManager.service bluetooth.service podman.socket cups.service mullvad-daemon.service && \
systemctl mask bootc-fetch-apply-updates.timer