56 lines
2.2 KiB
Docker
56 lines
2.2 KiB
Docker
ARG IMAGE_NAME="${IMAGE_NAME:-kinoite}"
|
|
ARG SOURCE_IMAGE="${SOURCE_IMAGE:-kinoite}"
|
|
ARG BASE_IMAGE="quay.io/fedora-ostree-desktops/${SOURCE_IMAGE}"
|
|
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}"
|
|
|
|
|
|
FROM ghcr.io/andersrh/my-ostree-os-kernel-akmods:main-38 AS builder
|
|
|
|
ARG CACHEBUST=0
|
|
ARG IMAGE_NAME="${IMAGE_NAME}"
|
|
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
|
|
|
|
RUN cd /tmp && \
|
|
# remove Okular and Firefox from base image
|
|
rpm-ostree override remove firefox firefox-langpacks && \
|
|
rpm-ostree install ksshaskpass cronie distrobox fish flatpak-builder gparted libcap-ng-devel libvirt-daemon-driver-lxc libvirt-daemon-lxc lld nvtop procps-ng-devel seadrive-gui virt-manager kerver pulseaudio-utils hfsplus-tools VirtualBox && \
|
|
# install Mullvad VPN
|
|
mkdir /var/opt && rpm-ostree install https://mullvad.net/da/download/app/rpm/latest && \
|
|
mv "/opt/Mullvad VPN" /usr/lib/opt/ && \
|
|
# enable automatic updates
|
|
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
|
# change auto update interval
|
|
sed -i 's/OnUnitInactiveSec.*/OnUnitInactiveSec=1h\nOnCalendar=*-*-* 06:40:00\nPersistent=true/' /usr/lib/systemd/system/rpm-ostreed-automatic.timer
|
|
|
|
# Install TeamViewer
|
|
RUN rpm-ostree install https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm && \
|
|
mv "/opt/teamviewer" /usr/lib/opt/
|
|
# Disable Teamviewerd by default
|
|
RUN systemctl disable teamviewerd
|
|
RUN systemctl enable rpm-ostreed-automatic.timer
|
|
|
|
# Change ZRAM max to 16GB
|
|
RUN sed -i 's/zram-size.*/zram-size = min(ram, 16384)/' /usr/lib/systemd/zram-generator.conf
|
|
|
|
# Add docker-compose dependency for "podman compose" command
|
|
RUN rpm-ostree install docker-compose
|
|
|
|
# Add docker -> podman alias for docker-compose to work properly
|
|
RUN ln -s /usr/bin/podman /usr/bin/docker
|
|
|
|
RUN rpm-ostree install neofetch
|
|
|
|
# Disable SELinux
|
|
RUN sed -i "s/^SELINUX=.*$/SELINUX=permissive/g" /etc/sysconfig/selinux && sed -i "s/^SELINUX=.*$/SELINUX=permissive/g" /etc/selinux/config
|
|
|
|
# Copy config files
|
|
COPY etc /etc
|
|
# Copy /usr
|
|
COPY usr /usr
|
|
|
|
# Enable /nix mount service
|
|
RUN systemctl enable mount-nix-prepare.service
|
|
|
|
# Clear cache, /var and /tmp and commit ostree
|
|
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
|
ostree container commit
|